1249 Commits

Author SHA1 Message Date
Jonathan Chang
86f245effb dev-cmd: new pr-publish command 2020-03-22 13:35:15 +11:00
Dawid Dziurla
a3eefda0f9
create: add --ruby option 2020-03-21 15:41:27 +01:00
Mike McQuaid
08c2225de9
Merge pull request #7182 from samford/throttle-aswcli@1
audit: throttle awscli@1 instead of awscli
2020-03-16 13:13:20 +00:00
Sam Ford
e835ccb5cc
audit: throttle awscli@1 instead of awscli 2020-03-15 21:25:21 -04:00
Gautham G
badcaa15e4
ARGV: Deprecate ARGV.keep_tmp? 2020-03-15 13:24:48 +00:00
Issy Long
202cc04456
Merge pull request #7165 from dawidd6/bump-version-equal
bump-formula-pr: ignore --version argument if equal to detected version
2020-03-15 11:04:52 +00:00
Mike McQuaid
1e265247ca
rubocop: apply autofixes. 2020-03-13 21:16:18 +00:00
Dawid Dziurla
8db863ff7e
bump-formula-pr: ignore --version argument if equal to detected version 2020-03-13 17:09:58 +01:00
Mike McQuaid
2afeffc91b
man: include full help from external commands.
Inspired by https://github.com/Homebrew/brew/issues/7148
2020-03-11 12:22:46 +00:00
Mike McQuaid
f63d2d7887
man: be more exact about global options.
Make clear these don't necessarily apply to all subcommands
(see https://github.com/Homebrew/brew/issues/7121).
2020-03-11 12:16:47 +00:00
Mike McQuaid
78140cef4a
Merge pull request #7073 from alexreg/issue-7068
audit: ignore group write bit
2020-03-06 14:08:45 +00:00
Alexander Regueiro
68047abc0e audit: ignore group write bit 2020-03-05 23:01:41 +00:00
Mike McQuaid
e3ac94fc5d
dev-cmd: use more and cleanup new args APIs. 2020-03-05 09:40:15 +00:00
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