Mike McQuaid
f6631d6449
Merge pull request #7019 from iMichka/python2doc
...
brew: remove most traces of python@2
2020-03-04 11:21:07 +00:00
Mike McQuaid
10ba0d5a66
Merge pull request #7092 from dawidd6/bump-push-with-token
...
bump-formula-pr: return remote url with token in it
2020-03-02 18:42:57 +00:00
Dawid Dziurla
456f3b1923
bump-formula-pr: return remote url with token in it
2020-03-02 18:50:42 +01:00
EricFromCanada
b80af7837a
bump-formula-pr: add missing URL escapes
2020-02-28 13:02:55 -05:00
Mike McQuaid
2eb908a9fb
dev-cmd/extract: allow maintainers to extract to core.
...
I was wanting to do this today to add `ruby@2.6` and it's a social
rather than technical requirement (i.e. we don't want users to mess
with their homebrew/core unless they know what they are doing) so allow
overriding with `HOMEBREW_DEVELOPER` set.
2020-02-27 10:36:10 +00:00
Mike McQuaid
cf02ac9d46
Merge pull request #7066 from alebcay/extract-handle-versions
...
extract: handle versioned formulae names
2020-02-25 19:31:38 +00:00
Mike McQuaid
2e1a9f8bb6
Merge pull request #7051 from EricFromCanada/bump-formula-mirrors
...
bump-formula-pr: improve mirror handling
2020-02-25 16:17:12 +00:00
Issy Long
6d5f6ce96c
Revert "pull: use homebrew
remote if HOMEBREW_FORCE_HOMEBREW_ON_LINUX"
...
- This reverts commit 9fb1876101a1abac8e3bfcc9f4f6fadbf0921c7c and commit
f8863c8a3bbef32dc65c9b95a57b54d7fc26c27e.
- The `JENKINS_HOME` envvar appears to be unset on the Linux Jenkins
master that holds the BinTray credentials.
- It's bed time, we're too tired to be fixing forward!
2020-02-24 22:56:33 +00:00
Dawid Dziurla
f8863c8a3b
pull: fix remote on jenkins
2020-02-24 23:26:28 +01:00
EricFromCanada
6f5cd0e7fe
bump-formula-pr: support add multiple mirror URLs with --mirror
2020-02-24 13:07:46 -05:00
EricFromCanada
a24477dad6
bump-formula-pr: fix output when listing guesses
2020-02-24 13:07:46 -05:00
EricFromCanada
7ec2ffda93
bump-formula-pr: warn when removing mirrors
2020-02-24 13:07:46 -05:00
EricFromCanada
0132b905bf
bump-formula-pr: automatically mirror Apache & GNU projects
2020-02-24 13:07:46 -05:00
EricFromCanada
50cc9db0f2
bump-formula-pr: also infer mirrors when a checksum is provided
2020-02-24 13:07:46 -05:00
Mike McQuaid
5974714453
pull: add more docs comment context.
2020-02-24 11:41:29 +00:00
Dawid Dziurla
9fb1876101
pull: use homebrew
remote if HOMEBREW_FORCE_HOMEBREW_ON_LINUX
2020-02-23 21:49:23 +01:00
Caleb Xu
fa5faf3895
extract: handle versioned formulae names
...
Turn the output versioned formula from the form "name@version" to
"name-version", then following by appending the specific version
after it.
This solution ensures that separate extracted versions of a formulae
can exist alongside each other (e.g. 'python-2@2.7.17' and
'python-2@2.7.16').
2020-02-23 14:32:13 -05:00
Michka Popoff
c46a30b575
brew: remove most traces of python@2
2020-02-17 22:38:24 +01:00
Mike McQuaid
f31e01c3ad
test: set Git name and email.
...
Extract the code from `bottle.rb` into `utils/git.rb` and ensure it's
run before we run tests.
Should resolve issues like in
https://github.com/Homebrew/homebrew-core/pull/50328
2020-02-17 19:40:44 +00:00
Issy Long
b3abf3d7c9
dev-cmd/tap-new: Set up GitHub Actions CI instead of Azure
...
- We recently removed Azure as a supported CI provider
(Homebrew/homebrew-test-bot PR 325), so `brew test-bot` won't run on
Azure any more.
- Homebrew CI is moving towards GitHub Actions as the standard.
2020-02-15 17:39:33 +00:00
Issy Long
1ab843ba47
bump-formula-pr: Only delete Linux bottle line if it exists
...
- We have some Linux-only formulae that don't have bottles.
- Previously, bumping a Linux-only formula that didn't have a bottle
line - eg, `adoptopenjdk` which is `bottle :unneeded` - would fail:
```
Error: inreplace failed
/app/linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/adoptopenjdk.rb:
expected replacement of /^ sha256 ".+" => :x86_64_linux\n/m with "\2"
```
2020-02-14 22:41:31 +00:00
Issy Long
1df8584d13
bump-formula-pr: Determine Linux-only formulae with depends_on :linux
...
- We used to use `# tag "linux"` in Homebrew/linuxbrew-core for the ~50
Linux-only formulae. As of
6578a4aa86
,
we're using `depends_on :linux` to have a consistent syntax between
Linux and macOS.
- Therefore, we have to change the search string for Linux-only formulae
that determines whether or not `brew bump-formula-pr` deletes the bottle
line.
2020-02-13 21:28:12 +00:00
Mike McQuaid
dca717e699
Merge pull request #6969 from dawidd6/bottle-cellar-priority
...
bottle: prioritize HOMEBREW_CELLAR over :any over :any_skip_relocation
2020-02-11 12:31:09 +00:00
Dawid Dziurla
c80107c8a2
bottle: prioritize HOMEBREW_CELLAR over :any over :any_skip_relocation
2020-02-10 21:39:36 +01:00
Mike McQuaid
8a9dcad2c7
Move more command handling logic to commands.rb.
2020-02-02 17:05:45 +01:00
Mike McQuaid
eb87651341
Revert "Revert "help: print cli/parser help message if used""
2020-02-02 16:36:59 +01:00
Mike McQuaid
2082379a61
Revert "help: print cli/parser help message if used"
2020-02-02 09:11:23 +01:00
Mike McQuaid
2b86e036fb
Merge remote-tracking branch 'origin/master' into external-help-cli-parser
2020-02-01 19:05:24 +01:00
Mike McQuaid
b03efb4356
Move shared man/help logic to cli/parser.
2020-02-01 19:05:03 +01:00
Shaun Jackman
7f4c7e0afc
bottle: Elide root_url only if it is the default
...
Elide root_url only if it is precisely equal to the default root_url.
Eliding root_url when a prefix matches the default also elides
a custom root_url such as https://linuxbrew.bintray.com/bottles-bio .
2020-01-26 22:04:41 -08:00
Dawid Dziurla
359dc9674c
bump-formula-pr: delete linux sha256 line if required
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-01-18 15:27:40 +01:00
Gautham Goli
de9295cc7a
Merge pull request #6939 from Homebrew/argv-cleanup-8
...
ARGV: Replaces usages of ARGV.force? with Homebrew.args.force?
2020-01-15 21:25:36 +05:30
Gautham Goli
161c3fb6a4
ARGV: Replaces usages of ARGV.force? with Homebrew.args.force?
2020-01-15 21:09:31 +05:30
Mike McQuaid
ea1a3ea6e0
dev-cmd/bottle: run sudo --purge
non-interactively.
...
This should avoid hanging if permissions are not granted.
2020-01-15 10:48:13 +00:00
Mike McQuaid
36dac3d41f
dev-cmd/bottle: add HOMEBREW_BOTTLE_SUDO_PURGE.
...
Add environment variable to optionally run `sudo purge` a few times to
potentially work around #6539 .
2020-01-14 15:09:13 +00:00
Jonathan Chang
bcb8f4da5f
Merge pull request #6903 from jonchang/audit-core-wording
...
audit: add "homebrew/core" for relevant checks
2020-01-08 15:53:45 -05:00
Jonathan Chang
779304df68
audit: add "homebrew/core" for relevant checks
2020-01-08 15:38:48 -05:00
Mike McQuaid
4efc1276b3
dev-cmd/audit: make git audit only --new-formula only.
...
Useful in e.g. https://github.com/Homebrew/homebrew-core/pull/46550 to
avoid repeatedly triggering a failing audit.
2020-01-08 12:12:26 +00:00
Gautham Goli
959b88266d
ARGV: Replace usages of ARGV.resolved_formulae with Homebrew.args
2020-01-02 13:56:19 +00:00
Mike McQuaid
76711e3222
Fix Rubocop 0.78.0 failures.
2019-12-19 12:01:51 +00:00
Gautham Goli
685a6b4da6
ARGV: Replace usages of ARGV.named with Homebrew.args.named
2019-12-18 20:38:21 +05:30
EricFromCanada
aea6d79d21
option parser: check for extra named args
2019-12-15 00:04:45 -05:00
EricFromCanada
90e830c19e
cmd: add raises for invalid input
2019-12-15 00:04:45 -05:00
EricFromCanada
2f7c3afeb8
cmd: improve wording of messages, spacing
2019-12-15 00:04:45 -05:00
EricFromCanada
f0270a585c
desc/audit: remove messages obviated by new arg parser
2019-12-13 15:23:38 -05:00
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
Mike McQuaid
40c6fbdccf
bump-formula-pr: tweak fix syntax.
2019-12-07 11:27:27 +00:00
Fred Emmott
3339d5af32
Fix bump-formula-pr
on a file with no tap
...
fixes #6821
2019-12-06 11:10:01 -08:00
Figroc Chen
3c09ab0d06
extract: semver aware
2019-12-03 21:45:55 +08:00
Mike McQuaid
6decac5875
Merge pull request #6803 from MikeMcQuaid/latest_version_installed
...
Rename Formula#installed? to Formula#latest_version_installed?
2019-12-03 12:09:01 +00:00