Jason Karns
79a8279b2c
Improve user ergonomics of brew link --overwrite help
...
When a Keg is unlinked, brew-link gives a helpful message for how to proceed: adding the `--overwrite` flag.
For safety, it also recommends running in `--dry-run` mode first to see what would be deleted.
So a user's common flow would be:
1. run `brew link foo`
2. get error message with guidance
3. run `brew link --overwrite --dry-run foo`
4. inspect
5. run `brew link --overwrite foo`
In this flow, steps 3-5 are likely very common. Common enough that a user may use their shell history to re-populate their prompt with step 3's command, delete the `--dry-run` flag, and re-run. (The end goal, of course, is to link `foo`.)
The `--dry-run` flag needs to be removed from the command, of course. If it had been at the _end_ of the command, it would make the subsequent modification easier.
Instead of "up arrow, left-arrow a bunch, then backspace over --dry-run, hopefully not backspacing over the formula name", it would be easier for the user if the dry-run flag were already at the end of the command. Then the user can "up arrow, backspace a few times and hit enter".
What's more, if the last arg were `--dry-run`, a more advanced bash user could even use `!:-` to re-run the link command with all-but-the-last-arg.
2024-02-12 09:29:21 -05:00
Kevin
352f57d753
Merge pull request #16641 from aaronliu0130/patch-1
...
Cookbook: the deleted → be deleted
2024-02-11 14:18:21 -08:00
Kevin
ac7e759540
Merge pull request #16637 from sjorek/issue-16636-fix-support-of-formulae-aliases-in-taps
...
Fix support of formulae aliases in taps
2024-02-11 14:15:42 -08:00
apainintheneck
70ffc31338
formulary: update logic and add regression test
2024-02-11 13:09:53 -08:00
Aaron Liu
db12a9c4ae
Docs: the deleted → be deleted
2024-02-11 14:47:32 -05:00
Patrick Linnane
024eb6419b
Merge pull request #16639 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-runtime-and-sorbet-static-and-runtime-0.5.11247
...
build(deps): bump sorbet-runtime and sorbet-static-and-runtime in /Library/Homebrew
2024-02-11 09:39:31 -06:00
BrewTestBot
1ba848ccec
Update RBI files for sorbet-runtime-and-sorbet-static-and-runtime.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-02-11 15:29:41 +00:00
BrewTestBot
593e913ea0
brew vendor-gems: commit updates.
2024-02-11 15:27:59 +00:00
dependabot[bot]
b7cd5072a9
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
...
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet ) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ). These dependencies needed to be updated together.
Updates `sorbet-runtime` from 0.5.11237 to 0.5.11247
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static-and-runtime` from 0.5.11237 to 0.5.11247
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: sorbet-static-and-runtime
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-11 15:26:36 +00:00
Stephan Jorek
d01de7545c
refactor bugfix to satify brew audit
2024-02-11 11:40:49 +01:00
Stephan Jorek
863654e37c
remove accidentally added newline
2024-02-11 01:39:44 +01:00
Stephan Jorek
1570a4b8a3
Fix support of formulae aliases in taps
...
Resolves : #16636
2024-02-11 00:38:47 +01:00
Kevin
6797edf425
Merge pull request #16632 from reitermarkus/simplify-tests
...
Simplify tests.
2024-02-10 10:29:31 -08:00
Kevin
0782ba112c
Merge pull request #16581 from bevanjkay/shared_filelist_cop
...
rubocops/cask: add a cop for specific numbered shared file list files
2024-02-10 10:13:38 -08:00
Markus Reiter
3cbdc196fc
Merge pull request #16635 from reitermarkus/fix-recursive-tap-migrations
...
Stop following recursive tap migrations.
2024-02-10 15:20:58 +01:00
Markus Reiter
3e61e3b428
Stop following recursive tap migrations.
2024-02-10 15:07:31 +01:00
Markus Reiter
73f1629fa1
Merge pull request #16624 from reitermarkus/avoid-t-must
...
Avoid `T.must`.
2024-02-10 12:38:43 +01:00
Markus Reiter
8b69b898ec
Merge pull request #16633 from sohanh/improved-github-link-for-permission-error-message
...
Improved the GitHub link that is generated when the required scope of the token has mismatched with the present scope
2024-02-10 12:20:11 +01:00
Markus Reiter
94afce5b13
Remove empty line.
2024-02-10 12:10:55 +01:00
Sohan Honavar
3dc104167e
Update Library/Homebrew/utils/github/api.rb
2024-02-10 11:35:53 +05:30
Markus Reiter
d1fa91cd78
Clear tap caches after linking cask fixtures.
2024-02-09 23:37:11 +01:00
Sohan Honavar
ca85c5355f
Reused the variable as per the review suggestion
2024-02-10 03:50:08 +05:30
Markus Reiter
d42f419217
Don't use slashes when loading casks in tests.
2024-02-09 23:17:25 +01:00
Mike McQuaid
73f986908c
Merge pull request #16622 from reitermarkus/audit-tap-aliases-renames
...
Audit taps for duplicates in aliases/renames.
2024-02-09 21:56:38 +00:00
Sohan Honavar
57b7999843
Improved the GitHub link that is generated when the required scope of the token has mismatched with the present scope
2024-02-10 02:41:11 +05:30
Markus Reiter
d9263196a2
Never link outdated cask fixtures.
2024-02-09 22:04:26 +01:00
Markus Reiter
55b4db3f43
Use before instead of let!.
2024-02-09 22:03:13 +01:00
Markus Reiter
a04dd7b547
Deduplicate before blocks.
2024-02-09 22:03:05 +01:00
Markus Reiter
4d8b3784db
Remove unnecessary to_s.
2024-02-09 22:02:00 +01:00
Mike McQuaid
babebfd3a1
Merge pull request #16631 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.7.7
...
build(deps-dev): bump rubocop-sorbet from 0.7.6 to 0.7.7 in /Library/Homebrew
2024-02-09 19:18:38 +00:00
BrewTestBot
51763cbd14
Update RBI files for rubocop-sorbet.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2024-02-09 18:13:03 +00:00
BrewTestBot
61a0d807ed
brew vendor-gems: commit updates.
2024-02-09 18:11:03 +00:00
dependabot[bot]
3c7f5ea659
build(deps-dev): bump rubocop-sorbet in /Library/Homebrew
...
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet ) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases )
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.7.6...v0.7.7 )
---
updated-dependencies:
- dependency-name: rubocop-sorbet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-09 18:09:29 +00:00
Markus Reiter
e90b53b50c
Merge pull request #16621 from reitermarkus/cask-loader-improvements
...
More `CaskLoader` improvements.
2024-02-09 17:46:21 +01:00
Markus Reiter
5cf4f2f058
Fix type signature for String#slice.
2024-02-09 17:33:51 +01:00
Markus Reiter
5cc1ddc5c5
Use numbered block parameter.
...
Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
2024-02-09 17:03:01 +01:00
Markus Reiter
a8980a6abc
Fix code style.
2024-02-09 16:59:40 +01:00
Markus Reiter
cb13f95928
Avoid T.cast.
2024-02-09 16:59:27 +01:00
Markus Reiter
a20d95b1b5
Simplify conditionals.
2024-02-09 16:51:35 +01:00
Ruoyu Zhong
a58941a134
Merge pull request #16627 from Homebrew/spdx-update
2024-02-09 11:24:30 +08:00
Kevin
4b5117af1a
Merge pull request #16625 from reitermarkus/unused-methods
...
Remove unused methods.
2024-02-08 19:23:03 -08:00
Markus Reiter
14763c9a7f
Merge pull request #16626 from nex3/patch-1
...
Don't require "branch: main" for resources with revisions set
2024-02-09 02:02:47 +01:00
BrewTestBot
140b37950d
spdx: update license data.
...
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml ).
2024-02-09 00:11:05 +00:00
Natalie Weizenbaum
da624b2f3c
Don't require "branch: main" for resources with revisions set
...
Just like when a tag is set, when a revision is set for a resource it shouldn't _also_ specify that it comes from the main branch.
2024-02-08 23:54:12 +00:00
Markus Reiter
1d549c4815
Avoid T.must.
2024-02-08 20:07:01 +01:00
Markus Reiter
8cbb5566b6
Remove unused methods.
2024-02-08 20:06:48 +01:00
Markus Reiter
1323262610
Rename constant.
2024-02-08 19:22:02 +01:00
Markus Reiter
b6c061ad18
Audit taps for duplicates in aliases/renames.
2024-02-08 16:36:10 +01:00
Markus Reiter
76d8d6c840
Add type signatures.
2024-02-08 16:30:08 +01:00
Markus Reiter
a37afcb777
Fix loading renamed casks from API.
2024-02-08 16:29:31 +01:00