Mike McQuaid
766fc4b301
Fix RuboCop 0.77.0 failures.
2019-11-28 15:10:50 +00:00
Mike McQuaid
2e382cdbdf
Merge pull request #6776 from maxim-belkin/dawid66++
...
GitHub Actions: get username if we don't have it
2019-11-27 12:21:07 +00:00
Maxim Belkin
5ba5a2795e
Fix signature for forked_repo_info
2019-11-26 12:14:21 -06:00
Maxim Belkin
40b0b32a72
Revert "bump-formula-pr: fix forking logic"
...
This reverts commit c5da90e0eb2ade879d7e60a0ec6a193aad3f8afb.
2019-11-26 12:10:14 -06:00
Mike McQuaid
96e0686d78
Merge pull request #6778 from bayandin/audit-check-resources-uniq-name
...
dev-cmd/audit: check resource name does not match formula name
2019-11-26 16:25:47 +00:00
Tom Schoonjans
e704bf7184
audit: add libepoxy 1.5.4 to whitelist
2019-11-26 10:26:17 +00:00
Alexander Bayandin
349f37be68
dev-cmd/audit: check resource name does not match formula name
2019-11-26 01:02:27 +00:00
Dawid Dziurla
c5da90e0eb
bump-formula-pr: fix forking logic
2019-11-23 14:08:28 +01:00
Mike McQuaid
28635a7fe4
Merge pull request #6723 from maxim-belkin/gh-actions/no-fork-prs
...
bump-formula-pr: enable same-repo (no-fork) Pull Requests
2019-11-22 09:06:48 +00:00
Mike McQuaid
04835db85e
Move some brew-test-bot logic to GitHub Actions.
...
This will improve the output and ease of parsing while allowing code to
be removed from brew-test-bot which relates only to a single repo (this
one).
2019-11-21 19:50:23 +00:00
Maxim Belkin
1a0361a57d
Don't check dry run status where it is not needed
2019-11-21 11:13:10 -06:00
Maxim Belkin
ba7a05a919
bump-formula-pr.rb: Apply suggestions from code review
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2019-11-21 11:13:10 -06:00
Maxim Belkin
a031fe911e
Switch from formula.tap.full_name to tap_formula_name
2019-11-21 11:13:10 -06:00
Maxim Belkin
845f65b945
Factor out some code into functions
2019-11-21 11:13:10 -06:00
Maxim Belkin
620e96b929
bump-formula-pr: enable same-repo (no-fork) Pull Requests
2019-11-21 11:13:09 -06:00
Issy Long
02524ba322
Remove --local
from git config
commands as it's the default
...
- The `--local` option doesn't exist in early versions of git (~1.7),
but its behaviour is the default (saving in the current repo's .git
directory).
- As it's the default across versions, we don't need to specify it
everywhere.
- Reported in Linuxbrew/install issue 78.
2019-11-16 10:19:42 +00:00
Mike McQuaid
ba3472b28c
Merge pull request #6718 from dawidd6/bumpable-linux
...
bump-formula-pr: make it usable on linux
2019-11-15 11:42:28 -08:00
Dawid Dziurla
f90612ccf0
bump-formula-pr: make it usable on linux
...
This commit makes it possible to use `bump-formula-pr` on linux to
contribute to `homebrew-core` as easily as it is on macOS, but with some
additional steps made before actual bumping of the formula.
Differences in the process (before bumping):
- add `homebrew-core` remote named `homebrew`
- fetch `homebrew/master`
- check if formula exists in `homebrew-core`
- switch to `homebrew/master` ref
2019-11-15 13:22:31 +01:00
Mike McQuaid
1b926389ad
Merge pull request #6738 from dunkmann00/audit_env
...
Fix Audit check for `env :std`
2019-11-13 17:58:56 -08:00
George Waters
8221e32ad4
Fix Audit check for env :std
...
When performing a strict audit of a formula in the core tap, it was
possible that the check for `env :std` would not happen.
2019-11-13 20:33:43 -05:00
Mike McQuaid
9d539d6b3b
Merge pull request #6704 from MikeMcQuaid/deprecation-disable-remove
...
Handle 2.2.0 deprecations/disableds
2019-11-13 17:26:30 -08:00
Mike McQuaid
5904aab98a
Merge pull request #6622 from zachauten/argv_kegs
...
Moved kegs from ARGV to args.rb
2019-11-13 00:22:09 +00:00
Zach Auten
fd429d0d75
Moved kegs from ARGV to args.rb
2019-11-09 11:56:47 -05:00
Markus Reiter
6521dbbad7
Merge pull request #6682 from reitermarkus/openjdk
...
Allow `JAVA_HOME` in formulae depending on `openjdk`.
2019-11-06 23:24:54 +01:00
Mike McQuaid
f3afedb4ff
utils#system: improve verbose output.
...
This previously output the hilarious long and unnecessary LOAD_PATH.
2019-11-06 15:25:51 +00:00
Mike McQuaid
176297d361
Handle 2.2.0 deprecations/disableds
...
- Make all `odeprecated` from 2.1.0 `odisabled` instead
- Remove dead code that won't be run now
- Remove (unused) `or_later` handling for bottles
2019-11-06 15:25:40 +00:00
Mike McQuaid
ddcbdbe0c0
formula: cache runtime_dependencies related stuff.
2019-11-06 10:04:13 +00:00
Mike McQuaid
eeb9ac36a2
keg: cache runtime_dependencies.
2019-11-06 10:04:13 +00:00
Mike McQuaid
33330ba5b1
Merge pull request #6687 from jonchang/frozen-string-literal
...
Ruby 2.6 frozen string literals
2019-11-04 10:33:13 +00:00
Jonathan Chang
81db0e9551
dev-cmd: enable frozen string literals
...
Now that we use Ruby 2.6 we can fix these last two files.
2019-11-04 21:00:20 +11:00
Jonathan Chang
ae9638a80a
audit: better check for forked repo
...
Co-Authored-By: Steven Peters <scpeters@openrobotics.org>
2019-11-04 13:17:48 +11:00
Markus Reiter
b31c5cb137
Allow JAVA_HOME
in formulae depending on openjdk
.
2019-11-03 18:25:06 +01:00
Abi أب
990d45881f
Use Xcode_10.2.1
...
`brew doctor` will return exit code 1 if using Xcode_10.2
```==> brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Your Xcode (10.2) is outdated.
Please update to Xcode 10.2.1 (or delete it).
Xcode can be updated from the App Store.
==> FAILED
```
2019-10-28 23:59:01 +01:00
Mike McQuaid
333642927b
Merge pull request #6607 from dawidd6/keep-old-but-not-cellar
...
bottle: don't keep old cellar
2019-10-21 13:37:17 +01:00
Dawid Dziurla
aa9950282f
bottle: set bottle.cellar to old_spec.cellar if deleting mismatch
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2019-10-21 14:11:08 +02:00
Dawid Dziurla
e19fab86c0
bottle: allow prefix cellar to be any*
2019-10-21 13:37:55 +02:00
Cheng XU
94cf0d922e
bottle: do not install patchelf if --skip-relocation flag is passed
2019-10-16 14:29:53 +08:00
Issy Long
1f6168fe8a
Change regexp.match?(string) to string.match?(regexp) everywhere
...
- Only try to call `.match?` on strings that aren't nil.
2019-10-13 23:22:51 +01:00
Issy Long
18e684fad7
Stringify dev-cmd/audit text
variables when used in Regexp matching
...
- To have the audit commands continue to work, and the tests passing
(the previous error was [1]), everywhere we're trying to
`.match?(text)`, instead do `.match?(text.to_s)`.
[1] 5) Homebrew::FormulaAuditor#audit_file __END__ but no DATA
Failure/Error: fa.audit_file
TypeError:
no implicit conversion of Homebrew::FormulaText into String
# ./dev-cmd/audit.rb:267:in `match?'
# ./dev-cmd/audit.rb:267:in `audit_file'
# ./test/dev-cmd/audit_spec.rb:137:in `block (3 levels) in <module:Homebrew>'
2019-10-13 16:04:38 +01:00
Issy Long
69d84ebfd9
Auto-fix Lint/ErbNewArguments offenses
2019-10-13 16:04:29 +01:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
...
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
Layout/InconsistentIndentation once the auto-fixer had got rid of the
"redundant begin"s.
2019-10-13 16:04:27 +01:00
Issy Long
b78028b9c2
Auto-fix Performance/RegexpMatch offenses
2019-10-13 16:04:26 +01:00
Dawid Dziurla
86feb5a9de
audit: replace depends_on with uses_from_macos
2019-10-10 17:59:32 +02:00
Mike McQuaid
7ed95ab48e
man: die if blank output received.
2019-10-08 16:37:45 +01:00
Tom Schoonjans
9fc495125d
audit: add gcab 1.3 to whitelist
2019-10-08 10:00:28 +01:00
Markus Reiter
e719744248
Refactor brew style
.
2019-10-05 00:20:06 +02:00
Markus Reiter
b1d0c61fea
Update Gems.
2019-10-03 09:22:44 +02:00
Dawid Dziurla
8ff7601a92
define default prefix constants
...
also use them to detect if prefix line in bottle block is needed
2019-09-30 16:46:53 +02:00
Markus Reiter
749b6ded72
Merge pull request #6491 from dawidd6/create-perl
...
create: add --perl option
2019-09-26 20:55:31 +02:00
Dawid Dziurla
de4d08028e
create: add --perl option
2019-09-26 20:12:35 +02:00