2379 Commits
Author SHA1 Message Date
Michael Cho a1921b8141 dev-cmd/unbottled: ignore versioned macos when checking linux 2022-03-29 18:01:16 -07:00
Mike McQuaid 79891a7103 Update uses of Formula.all/Cask::Cask.all
Add some `--all` flags we'll eventually migrate to to ensure that we'll
eventually require their usage to read all formulae. Where we need to
do stuff later, add some comments.
2022-03-08 19:24:56 +00:00
Bo Anderson ddeadaefce dev-cmd/pr-pull: require unzip to be installed 2022-03-02 05:19:41 +00:00
Bo Anderson e4159a7986 dev-cmd/pr-pull: consider alternative tap formula directories
Fixes #12939.
2022-03-01 16:39:09 +00:00
Mike McQuaid 9235fe959a Merge pull request #12942 from hyuraku/delete-deprecate-key
delete bottle deprecate key
2022-03-01 12:13:13 +00:00
hyuraku e46e35bb0c delete bottle deprecate key 2022-02-24 21:57:54 +09:00
Mike McQuaid 38e1b3d64b Deprecations, disables, deletions for 3.4.0 2022-02-22 14:28:32 +00:00
Mike McQuaid 2dc375acc2 Merge pull request #12900 from issyl0/bump-no-prereleases-based-on-livecheck
dev-cmd/bump: Ignore Repology if the livecheck uses `GithubLatest`
2022-02-21 09:03:54 +00:00
Issy LongandNanda H Krishna 9ad3a9cefe dev-cmd/bump: Tell the user why we didn't bump a package
Co-authored-by: Nanda H Krishna <me@nandahkrishna.com>
2022-02-20 17:56:33 +00:00
Issy Long 0a91c40ed5 dev-cmd/bump: Ignore Repology if the livecheck uses GithubLatest
- I got frustrated when I fixed the build and test failures for
  https://github.com/Homebrew/homebrew-core/pull /95430 only to have the
  audit step say it was a pre-release.
- Repology can list versions that are GitHub pre-releases. Pre-release
  versions of software are things we don't generally want to ship:
  there's an audit specifically for that.
- This fixes `brew bump` to not mark a Repology version as the newest if
  the formula's livecheck strategy is `GithubLatest`. If the livecheck
  doesn't exist, or its update strategy is something other than
  `GithubLatest`, Repology's reported package version is respected.
2022-02-19 21:41:17 +00:00
Issy Long 6685f2f314 dev-cmd/dispatch-build-bottle: Stop replacing linuxbrew-core
- The cores are now merged (🎉), so the Linux core tap is
  `homebrew-core` not `linuxbrew-core`, everything core should have
  switched over, this should be safe to remove.
2022-02-18 16:41:35 +00:00
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