18967 Commits

Author SHA1 Message Date
Maxime Garcia
65bb03a7db Fix uninitialized constant Cask::Pkg 2020-07-27 18:04:29 +02:00
Dawid Dziurla
a8e524d334
bottle: fix inreplace string 2020-07-27 17:23:08 +02:00
Mike McQuaid
97cf1750f3
Merge pull request #8101 from vidusheeamoli/fix-StringInreplaceExtension-usage
dev-cmd/bump-formula-pr.rb: fix StringInreplaceExtension usage
2020-07-27 16:07:09 +01:00
Jonathan Chang
8b11584785
Merge pull request #8091 from jonchang/bottle-version-check
pr-upload: ensure bottle and formula version match
2020-07-28 00:25:04 +10:00
Mike McQuaid
2ff56c9e71
Merge pull request #7927 from MLH-Fellowship/integrate-cask
Allow references to casks when running upgrade and outdated
2020-07-27 15:11:32 +01:00
Jonathan Chang
80b62d8c2c pr-upload: style tweaks
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-27 23:55:45 +10:00
Jonathan Chang
ebfd308241 pr-upload: ensure bottle and formula version match 2020-07-27 23:55:45 +10:00
vidusheeamoli
cff79348c9
dev-cmd/bump-formula-pr.rb: fix StringInreplaceExtension usage 2020-07-27 14:55:31 +01:00
William Ma
fa60d99265 outdated: vary deprecated message depending on flag 2020-07-27 09:34:52 -04:00
William Ma
f8708ae80c Add todo for --json=v1 deprecation 2020-07-27 09:12:30 -04:00
Mike McQuaid
047738069f
Speed up timing-out tests.
- make `brew readall` only check Homebrew/brew syntax with no tap
  passed.
- pass specified tap to `brew readall` test for speed
- only shell out once in `FormulaInfo` test for speed
2020-07-27 14:01:22 +01:00
Mike McQuaid
25db60ebbb
Unify (mostly) Homebrew code style
Make the Homebrew/cask and Homebrew/homebrew-core style more closely
match the rest of Homebrew.

To accomplish this:
- Run `brew cask style` to ensure we don't break style there when
  making changes or upgrading RuboCop in Homebrew/brew.
- Fix the HomepageMatchesUrl cop to better handle weird input.
- Remove the now unneeded `.rubocop_shared.yml`
- Fix the cask fixtures with `brew cask style --fix`.
- Share more style between Homebrew/brew, casks and formulae.
2020-07-27 12:57:40 +01:00
Mike McQuaid
2100335441
Merge pull request #8049 from MLH-Fellowship/cask-commands
commands: Print cask commands
2020-07-27 12:44:21 +01:00
William Ma
f1b6a8debd Fix style 2020-07-26 22:12:08 -04:00
William Ma
2188b268de
Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-26 22:03:04 -04:00
Baffour Adu Boampong
119bc54e58 Removed duplicate method in bump-formula-pr 2020-07-26 22:47:32 +00:00
Baffour Adu Boampong
9e88b44bd7 Merge fixes 2020-07-26 22:39:46 +00:00
Dawid Dziurla
886d2edec2
Merge pull request #8082 from dawidd6/bump
bump-formula-pr: fix when no 'version' stanza in formula found
2020-07-26 19:20:06 +02:00
vidusheeamoli
1ba6d187e6 sorbet/homebrew.rbi: solve fetch.rb type error
Latest changes to fetch.rb introduced 2 new type errors.
These changes in sorbet/rbi/homebrew.rbi resolves those errors.
2020-07-26 21:09:34 +05:30
vidusheeamoli
791774691a sorbet: update hidden definitions 2020-07-26 21:06:46 +05:30
vidusheeamoli
b98fb1fcbb srb/tapioca: update rbi of recently bumped gems 2020-07-26 21:04:49 +05:30
vidusheeamoli
f6cdd6b37b sorbet/files.yaml: add new file 2020-07-26 21:03:00 +05:30
Issy Long
fdbb2ac16a
Merge pull request #7985 from vidusheeamoli/utils-inreplace-to-true
sorbet: set utils/inreplace.rb to true
2020-07-26 10:37:30 +01:00
Dawid Dziurla
1e805e04f9
bump-formula-pr: fix when no 'version' stanza in formula found
Without this fix, a command like:

    `brew bump-formula-pr --version=0.3.3 --tag=v0.3.3 --revision=... test-formula-git-revision`

will fail because:

```
Error: no implicit conversion of nil into String
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:281:in `escape'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:281:in `bump_formula_pr'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:111:in `<main>'
```

Additionally, reject all `nil` replacement pairs by calling `compact`
method.
2020-07-26 10:26:39 +02:00
vidusheeamoli
c27916cd87 srb/inreplace.rbi: add method signatures 2020-07-26 13:32:17 +05:30
vidusheeamoli
fd382d2ecd srb: set utils/inreplace.rb to true and refactor
- Sorbet gives preference to class methods over methods defined in
  included modules, hence Sorbet was unavailable to resolve the
definition of the gsub! method.
- The gsub! method in StringInreplaceExtension conflicts with the definition in String.
- This PR refactors the call to the gsub! method so that a custom object
  is exposed instead of a string.
2020-07-26 12:43:31 +05:30
Jonathan Chang
ae58255773
Merge pull request #8089 from dtrodrigues/readall-timeout
increase readall test timeout
2020-07-26 13:33:01 +10:00
Dustin Rodrigues
ec81d43519 increase readall test timeout 2020-07-25 22:53:25 -04:00
Dustin Rodrigues
e02d08f020 re-enable build from source for install, reinstall, upgrade 2020-07-25 22:27:54 -04:00
rmnull
e79eeb7560
Bug Fix: Don't search for needed libraries on non DYNAMIC ELFs. 2020-07-26 04:56:21 +05:30
Issy Long
9f296aa6ac
bintray: Fix "uninitialized constant EnvConfig" errors
- This fix was suggested by Sorbet when I ran `HOMEBREW_SORBET=1 bundle
  exec srb tc` on the latest `master` while playing around with the
  latest changes post-GSoC meeting.
- Then I noticed it was actually a bug, introduced in
  adc36a05ffeadb54b94c87d86f62fba9dbb86795, found by us not being able to
  publish bottles for [this build of the `n`
  formula](https://github.com/Homebrew/homebrew-core/runs/910309641?check_suite_focus=true)
  in https://github.com/Homebrew/homebrew-core/pull/58606:

```
[master 31d32307bd] n: update 6.7.0 bottle.
 1 file changed, 3 insertions(+), 3 deletions(-)
curl: (22) The requested URL returned error: 404 Not Found
Error: uninitialized constant Bintray::EnvConfig
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:28:in `open_api'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:43:in `upload'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:186:in `block (2 levels) in upload_bottle_json'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:158:in `each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:158:in `block in upload_bottle_json'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:153:in `each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/bintray.rb:153:in `upload_bottle_json'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/pr-upload.rb:54:in `pr_upload'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:111:in `<main>'
Error: Failure while executing; `/home/linuxbrew/.linuxbrew/bin/brew pr-upload --verbose --bintray-org=homebrew` exited with 1.
```
2020-07-25 22:09:58 +01:00
Markus Reiter
b50eea6849
Merge pull request #8068 from reitermarkus/cli-parser
Refactor usages of global `Homebrew.args`.
2020-07-25 21:01:39 +02:00
Adrian Ho
ad4fd55b78 audit: add gitless and telegram-cli to prerelease list
In support of #8075. Both formulae been on prerelease up till now.
2020-07-25 22:13:30 +08:00
Dustin Rodrigues
c42bcf7398
Merge pull request #8076 from dtrodrigues/301-redirect
curl: alert on 301 redirect
2020-07-25 09:27:01 -04:00
Dawid Dziurla
62ca046390
pr-automerge: pass proper tap variable
Co-authored-by: Jonathan Chang <jchang641@gmail.com>
2020-07-25 08:42:39 +02:00
Markus Reiter
76cc31f134 Pass args in pr-pull instead of using global args. 2020-07-25 04:28:02 +02:00
Markus Reiter
8a1f8ab858 Pass args to FormulaInstaller instead of using global args. 2020-07-25 04:21:21 +02:00
Markus Reiter
6c050492ee Pass args to Analytics instead of using global args. 2020-07-25 03:57:43 +02:00
Markus Reiter
25b3632c4c Pass args to ENV instead of using global args. 2020-07-25 03:57:43 +02:00
Markus Reiter
e669949659 Pass args to create instead of using global args. 2020-07-25 02:37:10 +02:00
Markus Reiter
6b0b25cd00 Pass keep_tmp? and interactive? instead of using global args. 2020-07-25 02:37:10 +02:00
Markus Reiter
a6bc9e155a Add helper functions for --cache and fetch explicitly. 2020-07-25 02:37:10 +02:00
Markus Reiter
a895f398ed Use BuildError#formula instead of args. 2020-07-25 02:37:10 +02:00
Markus Reiter
9176c62246 Pass args to build instead of using global args. 2020-07-25 02:37:10 +02:00
Markus Reiter
cfbe1fb3c7 Add helper functions for deps and uses explicitly. 2020-07-25 02:37:10 +02:00
Markus Reiter
bf13db3367 Make Parser#parse return args. 2020-07-25 02:37:10 +02:00
Markus Reiter
adc36a05ff Refactor Bintray not to depend on args. 2020-07-25 02:37:10 +02:00
Shaun Jackman
e7006beefb
Merge pull request #7970 from rmNULL/patchelfrb-lookup-rpath
Introduce ELFShim#rpath. Refactor keg_relocate to use the same. Return nil on no DT_RPATH, DT_RUNPATH, DT_SONAME, PT_INTERP.
2020-07-24 15:53:58 -07:00
Maxim Belkin
0a5ac65b56
Merge pull request #8064 from maxim-belkin/missing-libs-follow-up2
Detect unexpected linkage
2020-07-24 16:29:17 -05:00
rmnull
0bf981f010
skip tests when HOMEBREW_PATCHELF_RB is not set. 2020-07-25 01:41:20 +05:30