258 Commits
Author SHA1 Message Date
Mike McQuaid 94148c3bc8 Fix handling unreadable casks
When casks are unreadable (e.g. have invalid syntax, the cask file
cannot be found) then it's not been possible to uninstall them, list
them or perform any operation which iterates through all casks.

Handle these various cases by falling back to creating a `Cask::Cask`
object using just the name/token and latest installed version on disk.

This provides enough functionality to be able to verbosely list these
casks, not error on listing and, most importantly, uninstall/reinstall
them.

Fixes https://github.com/Homebrew/homebrew-cask/issues/62223
2022-05-16 17:27:13 -04:00
xxyzz 2e899da7c7 Add --no-force-auto-update option to brew tap
Enable this option to delete `homebrew.forceautoupdate` git config option
2022-05-11 07:17:17 +08:00
apainintheneck 9c4402a049 Resolved Sorbet type bug
Related to sorbet/sorbet#498

Had to change the call to caller_locations to filter out
sorbet runtime checking.
2022-04-25 00:29:05 -07:00
Mike McQuaid 38e1b3d64b Deprecations, disables, deletions for 3.4.0 2022-02-22 14:28:32 +00:00
Rylan Polster feb93167ad Rename and fix Formatter:wrap to Formatter.format_help_text 2022-01-08 23:13:08 -05: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
fn ⌃ ⌥ 9b611be759 Print given argument instead of rename if matching keg not found 2021-11-24 11:39:52 -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
EricFromCanada 6e0e96eb1d list: raise NoSuchKegError if formula exists but isn't installed 2021-11-11 17:40:32 -05:00
Mike McQuaidandGitHub 25b77857db Merge pull request #12305 from Rylan12/document-install-from-api
Document `HOMEBREW_INSTALL_FROM_API`
2021-10-25 11:48:58 +01:00
Bo Anderson c6dbff43bd dev-cmd/dispatch-build-bottle: allow an array of macOS runners 2021-10-24 15:09:01 +01:00
Rylan Polster 0b8032d421 Document HOMEBREW_INSTALL_FROM_API 2021-10-22 12:37:57 -04:00
Bo Anderson dc5edb14c3 dev-cmd/dispatch-build-bottle: add --timeout flag 2021-10-22 16:38:45 +01:00
Mike McQuaidandGitHub 144ca4ef61 Merge pull request #12234 from ni-nwoythaler/feature/12230-formula-cask-paths
Add `--print-path` flag to `brew edit`
2021-10-20 09:25:19 +01:00
Nathan WoythalerandMike McQuaid 0b8605bcbe Add --print-path flag to brew edit
Add a `--print-path` flag to `brew edit`, in order to print the source `.rb`
file of both casks and formulae. In order to prevent faulty reporting, `brew
formula $SOME_CASK` will now error out if a cask matches, but a formula does
not.
2021-10-20 09:04:59 +01:00
Mike McQuaidandGitHub b77b08cf00 Merge pull request #12121 from EricFromCanada/restore-repology
bump: add `--start-with` option to retrieve a subset of results
2021-10-20 09:02:48 +01:00
EricFromCanada 811d0fa0bd bump: add option to retrieve a subset of results
Plus a few fixes for output.
2021-10-19 20:14:39 -04:00
Mike McQuaid f65d525693 Deprecations/disables for 3.3.0/4.0.0.
Deprecate, disable and remove code for Homebrew 3.3.0 or 4.0.0
(whichever the next release ends up being).
2021-10-19 16:36:42 +01:00
XuehaiPan 828d3505cd cli/args.rbi: add custom_remote? 2021-10-12 20:43:20 +08:00
Mike McQuaidandGitHub bf7b043392 Merge pull request #11977 from Moisan/bump_revision_write
bump-revision: add --write switch
2021-09-14 10:16:41 +01:00
hyuraku 2347bfdb92 use default_kegs 2021-09-09 22:16:45 +09:00
Thierry Moisan 58ddea028b cli/args.rbi: add write_only? 2021-09-08 11:14:31 -04:00
Mike McQuaidandGitHub 7c37a34cca Merge pull request #11927 from FnControlOption/fetch
fetch: fix `--bottle-tag` when unbottled on host system
2021-09-01 16:08:05 +01:00
Rylan Polster 5d536d66fc Rename HOMEBREW_JSON_CORE to HOMEBREW_INSTALL_FROM_API 2021-08-27 00:24:15 -04:00
Rylan PolsterandGitHub 8690d661fd Merge pull request #11859 from Rylan12/cask-json
Allow casks to be installed using the `cask-source` API
2021-08-26 23:58:51 -04:00
FnControlOption b9fc4e36f0 fetch: fix --bottle-tag when unbottled on host system 2021-08-26 14:44:53 -07:00
FnControlOption 326321c1fd cli/parser: allow commands that look like options 2021-08-25 14:34:57 -07:00
Rylan Polster 99635bf3ae Remove need for homebrew/cask to be tapped 2021-08-14 16:17:26 -04:00
Bo Anderson e8b82bbe1e Fix brew style 2021-08-13 13:49:52 +01:00
92717b6f6f Update Library/Homebrew/cli/named_args.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-08-12 09:16:23 -04:00
Connor Mann a566c53db8 Add resolve_latest_keg revision secondary sort 2021-08-11 20:07:28 -04:00
Mike McQuaidandGitHub 3b13cf9797 Merge branch 'master' into dependabot/bundler/Library/Homebrew/sorbet-0.5.6519 2021-08-11 09:30:51 +01:00
Rylan PolsterandGitHub 90bbe8bb03 Merge pull request #11831 from Rylan12/api-cleanup
Refactor API methods
2021-08-09 12:32:55 -04:00
Connor Mann 363bcbd72a Sort head kegs by tab modification time 2021-08-06 21:27:21 -04:00
Bo Anderson cee86846ce Fix Sorbet violations. 2021-08-06 14:03:00 +01:00
Rylan Polster 737dd1654b Refactor API methods 2021-08-06 04:31:27 -04:00
Connor Mann 3dde12c634 Handle only HEAD kegs in to_latest_kegs 2021-08-04 18:51:39 -04:00
Rylan PolsterandGitHub e344cb6aff Merge pull request #11648 from Rylan12/homebrew-json
Install formulae from JSON files
2021-07-13 02:54:49 -04:00
Rylan Polster 1e34b69cd4 Prioritize installing from JSON if env var is set 2021-07-12 03:23:42 -04:00
Dawid Dziurla c676aee842 dispatch-build-bottle: rename --wheezy to --linux-wheezy 2021-07-05 18:24:43 +02:00
Rylan Polster e316c4f013 Rename Utils::BottleAPI to BottleAPI 2021-07-05 11:45:15 -04:00
Rylan Polster 36dd69dd60 Rename download_bottles to fetch_bottles 2021-07-05 10:55:34 -04:00
Rylan Polster 22f986b89a Install formulae from JSON files 2021-07-04 12:38:59 -04:00
Dawid Dziurla 7971411372 dispatch-build-bottle: support self-hosted Linux and unified workflow 2021-06-25 21:34:32 +02:00
Mike McQuaid 30a65342e8 Deprecate, disable, delete code for Homebrew 3.2.0
Do the usual deprecation, disable, delete dance for Homebrew 3.2.0.
2021-06-17 11:34:32 +01:00
Bo Anderson a06d136d2c Move Sorbet gems into an optional group 2021-06-11 08:10:30 +01:00
Rylan Polster 08b44afcdf cli/parser: allow options to be hidden 2021-06-08 22:02:32 -04:00
Connor Mann 0a1614286d Fix style 2021-05-24 08:44:36 -04:00
73ef297dd5 Update Library/Homebrew/cli/named_args.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-05-21 11:55:30 -04:00
3b0243900f Update Library/Homebrew/cli/named_args.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-05-21 11:55:11 -04:00