2368 Commits
Author SHA1 Message Date
Carlo Cabrera 6baf2aadb6 pr-{publish,pull}: autosquash by default
This allows dispatching the publish workflow via the GitHub UI to have
the exact same behaviour as doing `brew pr-publish`.

Closes Homebrew/homebrew-core#94704.
2022-02-08 20:02:21 +08:00
Nanda H Krishna 325d90bcbe brew bump: don't use Repology for versioned formulae 2022-01-31 04:34:17 -05:00
Milas Bowman 3364e519b5 dev-cmd/bump-formula-pr: fix undefined method null error
Fix a regression from 8b1fcc7c5c.
Only if `version.nil?` is `Version.detect` used, so we can
only use `version.null?` after that. (Otherwise, it's a string.)

```
Error: undefined method `null?' for "X.Y.Z":String
Please report this issue:
  https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:440:in `check_new_version'
/usr/local/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:131:in `bump_formula_pr'
/usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `<main>'
```
2022-01-21 16:24:50 -05:00
Nanda H Krishna f3fe865a94 dev-cmd/bump-formula-pr: improve version error message 2022-01-21 13:02:20 -05:00
Nanda H Krishna 8b1fcc7c5c dev-cmd/bump-formula-pr: fix for undetectable version
Currently, `brew bump-formula-pr` errors out without a proper message
when `--version` isn't specified and the formula's version cannot be parsed
from the URL. We fix this by returning early from `check_new_version` when the
detected version is Version::NULL.
2022-01-21 13:02:19 -05:00
Rylan Polster a17f41680d Combine Linux and macOS maintainers on the README 2022-01-21 12:05:18 -05:00
Adrian Ho af4955adfc dev-cmd/bottle: clean up intermediate tar
Otherwise Cellar gets cluttered.

Fixes https://github.com/Homebrew/brew/issues/12744.
2022-01-18 15:58:35 +08:00
Rylan Polster 537036ab36 Merge pull request #12608 from xxyzz/fix-bump-multilang-cask
bump-cask-pr: avoid replacing sha256 twice on multilang cask
2022-01-16 11:52:34 -05:00
Mike McQuaid af6d995de8 dev-cmd/bump: add switch to open pull requests.
This enables the simplification of
https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb
and exposing this workflow to more Homebrew users.
2022-01-12 17:31:55 +00:00
Mike McQuaid 3a709d36b2 Start process to remove Enumerable from Formula and Cask::Cask.
This is the first step to address
https://github.com/Homebrew/brew/issues/11292.
2022-01-03 14:59:10 +00:00
Mike McQuaid b09f421027 repology: always use Homebrew curl.
This seems to be required even with TLSv1.3 support now.

Also, while we're here, improve the error handling/output.
2022-01-03 13:17:12 +00:00
Steve Peters d53dab62c9 bump-revision: add --remove-bottle-block option
This removes a bottle block for the specified formulae
while bumping the revision.
2021-12-26 03:42:39 -08:00
xxyzz 5f3a69c227 don't skip any language 2021-12-25 15:01:49 +08:00
Rylan Polster 2e6b6ab3a2 Fix style 2021-12-24 21:15:21 -05:00
xxyzz 4cf996bcdf add comment 2021-12-21 18:01:49 +08:00
xxyzz fb415a15e9 bump-cask-pr: avoid replacing sha256 twice on multilang cask
this script always get `inreplace failed` on cask like firefox because the
default sha256 is replaced twice
2021-12-21 16:12:29 +08:00
Bo Anderson 6e37c67fba Fix disabled args appearing in documentation. 2021-12-17 02:02:45 +00:00
Mike McQuaid 11c5f8f05a Improve discovery of some environment variables
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:

- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents

For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves.
2021-11-25 09:10:59 +00:00
XuehaiPan 9ef52080e3 utils: extract common word "for" in reason 2021-11-23 23:59:09 +08:00
XuehaiPan d749173adc utils: mark reason as keyword argument in ensure_formula_installed! 2021-11-23 23:31:22 +08:00
XuehaiPan 3376479e95 utils: add method ensure_formula_installed! 2021-11-23 22:48:39 +08:00
Mike McQuaid 9be410b348 Merge pull request #12465 from XuehaiPan/bat-back-to-cat
dev-cmd/cat: auto-install `bat` when running `brew cat ...` with `HOMEBREW_BAT` set
2021-11-23 14:10:28 +00:00
XuehaiPan c6719e5854 dev-cmd/cat: require "formula" only when necessary 2021-11-23 21:35:44 +08:00
Mike McQuaid 5c0d0effe3 Merge pull request #12459 from FnControlOption/tap-new
tap-new: add `--github-packages` switch
2021-11-23 11:55:22 +00:00
XuehaiPan 687dbe5268 dev-cmd/cat: auto-install bat when running brew cat ... with HOMEBREW_BAT set 2021-11-23 15:20:57 +08:00
fn ⌃ ⌥ 5657e109af Apply suggestions from code review 2021-11-22 16:34:47 -08:00
Mike McQuaid 591c67f4e3 Merge pull request #12453 from FnControlOption/extract
extract: remove bottle blocks
2021-11-22 12:26:55 +00:00
Mike McQuaid ef4e329ce4 Merge pull request #12457 from FnControlOption/pr-upload
pr-upload: deprecate `--github-org=`
2021-11-22 12:26:23 +00:00
Mike McQuaid a8429df637 Merge pull request #12458 from FnControlOption/patch-11
bump-cask-pr: replace `--write` with `--write-only` in help text
2021-11-22 12:24:18 +00:00
Carlo Cabrera 001bd96fa3 Merge pull request #12454 from carlocab/strict-linkage
linkage: add `--strict` flag to detect opportunistic linkage
2021-11-22 20:02:28 +08:00
fn ⌃ ⌥ 56724da0b7 tap-new: add --github-packages switch 2021-11-19 12:35:50 -08:00
fn ⌃ ⌥ c0ca9275f9 bump-cask-pr: replace --write with --write-only in help text 2021-11-19 12:14:47 -08:00
fn ⌃ ⌥ 93b8fa7838 pr-upload: deprecate --github-org= 2021-11-19 11:48:23 -08:00
fn ⌃ ⌥ 8f96ba3c1e extract: remove bottle blocks 2021-11-19 10:45:30 -08:00
Carlo Cabrera 601bf83fee linkage: add --strict flag to detect opportunistic linkage
There was a previous discussion about making `brew linkage --test` fail
for unrequested dependencies (#9172). I'm not sure what the outcome of
that was, but it still seems like a good idea to try to help us find
cases of opportunistic linkage as they happen rather than when they
cause CI failures in another PR sometime later.

Let's do this by adding a `--strict` flag to `brew linkage --test`. My
intention is for `brew linkage --test --strict` failures to be warnings
rather than errors in CI, which should mitigate some of the concerns
about doing this that were raised in #9172.
2021-11-19 18:14:38 +08:00
Steve Peters aa4e39785c dev-cmd/unbottled: don't skip non-core formulae
Related to Homebrew/homebrew-test-bot#705

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
2021-11-18 08:13:44 -08:00
EricFromCanada dd439b4c11 bump: skip PR check if livecheck does not return a version 2021-11-11 10:02:30 -05:00
fn ⌃ ⌥ 7f292fc7d0 bump-cask-pr: use version substring before comma unless they match 2021-11-08 10:07:27 -08:00
Rylan Polster 2537b8d76d Merge pull request #12375 from Rylan12/fix-audit-args
`dev-cmd/audit`: fix cask arg handling
2021-11-08 00:47:57 -05:00
Bo Anderson 38ebaac869 dev-cmd/bottle: fix pkg_version comparison on merge 2021-11-08 03:42:41 +00:00
Rylan Polster e09139fb47 Clarify comment 2021-11-06 00:59:46 -04:00
Rylan Polster 46f7c8b0b6 Move handling to dev-cmd/audit.rb 2021-11-06 00:51:20 -04:00
Bo Anderson d4c33634db dev-cmd/bottle: correct all rebuild matching logic 2021-11-06 03:44:14 +00:00
Bo Anderson d2ba21c1b1 dev-cmd/bottle: don't gen all bottles if a bottle spec already exists 2021-11-05 17:29:18 +00:00
Eric Knibbe 6b38ed834c Merge pull request #12298 from EricFromCanada/curl-tls13-tests
bump: fix tests
2021-10-26 06:39:41 -04:00
danielnachun e69fbaf357 bottle.rb: fix typo in go regex 2021-10-25 23:21:01 -07:00
EricFromCanada c952ea7358 bump: fix tests 2021-10-25 15:55:11 -04:00
Dawid Dziurla fbabb0dad2 Merge pull request #12311 from iMichka/linux
pr-automerge: remove linux to homebrew-core label
2021-10-25 12:10:48 +02:00
Bo Anderson c6dbff43bd dev-cmd/dispatch-build-bottle: allow an array of macOS runners 2021-10-24 15:09:01 +01:00
Michka Popoff f96f29f68d pr-automerge: remove linux to homebrew-core label
Merging is done, we don't use this label anymore
2021-10-23 16:48:42 +02:00