29627 Commits

Author SHA1 Message Date
Sharon Azriel
4a37e81179 Rewrite of branching tests in parsing URL 2024-02-13 10:02:18 +02:00
Sharon Azriel
2833a217e9 [Library/Homebrew/cmd/update.sh] Add support for token provided w/o user in URL 2024-02-13 10:02:18 +02:00
Sharon Azriel
3619636f7f [Library/Homebrew/cmd/update.sh] Release Candidate for pull request 2024-02-13 10:02:18 +02:00
Sharon Azriel
53c261814e Fix brew style on update.sh (2) 2024-02-13 10:02:18 +02:00
Sharon Azriel
02a8de72d6 Fix brew style on update.sh 2024-02-13 10:02:17 +02:00
Sharon Azriel
07287982f2 Fix missing ; 2024-02-13 10:02:17 +02:00
Sharon Azriel
01d1e9b228 New implementation through BASH regexes match 2024-02-13 10:02:17 +02:00
sazriel26
a1e9e93902 Update Library/Homebrew/cmd/update.sh
better wording

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2024-02-13 10:02:17 +02:00
Sharon Azriel
154a8c398b Release Candidate 2 2024-02-13 10:02:17 +02:00
Sharon Azriel
e24027ea57 Release Candidate 1 2024-02-13 10:02:17 +02:00
Sharon Azriel
c83172c8f4 [update.sh] Parse local token in git remote.origin.url config 2024-02-13 10:02:17 +02:00
Markus Reiter
a783aaf03f
Merge pull request #16629 from reitermarkus/simplify-cask-loader
Simplify `CaskLoader` further.
2024-02-12 22:03:27 +01:00
Markus Reiter
c39abef045
Always prefer default tap. 2024-02-12 21:45:07 +01:00
Mike McQuaid
eb7338abba
Merge pull request #16645 from jasonkarns/patch-1
Improve user ergonomics of `brew link --overwrite` help
2024-02-12 15:42:26 +00:00
Sean Molenaar
71123a07fd
Merge pull request #16603 from SMillerDev/fix/pypy_bump/fail_superfluous_excludes
fix: fail if superfluous packages are excluded
2024-02-12 16:37:05 +01:00
Mike McQuaid
8e3bcd3e62
Merge pull request #16620 from samford/livecheck/add-crate-strategy
Livecheck: Add Crate strategy
2024-02-12 15:32:08 +00:00
Sean Molenaar
f2eb1564e4
Update Library/Homebrew/utils/pypi.rb 2024-02-12 16:12:52 +01:00
Sean Molenaar
44206bb8f0
Update Library/Homebrew/utils/pypi.rb 2024-02-12 16:09:33 +01:00
Mike McQuaid
599db8cc95
Merge pull request #16642 from dduugg/rubocop-rspec-paths
Include all test paths in RSpec cops
2024-02-12 14:48:25 +00:00
Sean Molenaar
8c16ccc646
Update pypi.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2024-02-12 15:39:51 +01:00
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
Markus Reiter
48c9897081
Convert FromNameLoader to class. 2024-02-12 07:43:29 +01:00
Markus Reiter
8e04ab8b42
Fix type signature. 2024-02-12 07:14:28 +01:00
Markus Reiter
0211feebd7
Fix loading test fixtures. 2024-02-12 07:14:27 +01:00
Markus Reiter
6f28392d6e
Remove FromDefaultTapPathLoader and FromDefaultTapLoader. 2024-02-12 07:12:33 +01:00
Markus Reiter
d17aa66759
Avoid T.cast. 2024-02-12 07:12:32 +01:00
Douglas Eichelberger
439c8c1819 Tighten up the types 2024-02-11 20:47:22 -08:00
Douglas Eichelberger
aab04229d1 Code review fixes 2024-02-11 20:27:39 -08:00
Douglas Eichelberger
1b84c5c8c2 Add upstream JSON generator modules 2024-02-11 20:27:39 -08:00
Douglas Eichelberger
9dcde74e81 brew tc --update-all 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
772ddb0e1e Add Etc::Group struct members to upstream 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
791ca27896 Add rubocop exclusion 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
adfec16871 Make gather_constants dynamic 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
1dd0f6bbb2 Exclude msgpack from RBI generation 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
07fad780de Remove hidden defs references 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
a40fc0afd3 Add upstream rbi 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
5b5cfe89de Resolve violations from removing hidden.rbi 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
c83e0170a9 Fix cask_help rbi 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
b010e397d6 Add extend/node.rbi, remove unused methods 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
09f5a46218 rm hidden.rbi 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
b2dc842238 wip 2024-02-11 20:27:38 -08:00
Douglas Eichelberger
12d32cc69e Manual fixes 2024-02-11 20:13:24 -08:00
Sam Ford
55ec4c483c
Crate: Rework conditions
Co-authored-by: Douglas Eichelberger <dduugg@gmail.com>
Co-authored-by: Markus Reiter <me@reitermark.us>
2024-02-11 21:53:21 -05:00
Sam Ford
98f3258ff4
Livecheck: Add Crate strategy
We discussed the idea of adding a livecheck strategy to check crate
versions years ago but decided to put it off because it would have
only applied to one formula at the time (and it wasn't clear that a
crate was necessary in that case). We now have a few formulae that
use a crate in the `stable` URL (`cargo-llvm-cov`, `pngquant`,
`oakc`) and another formula with a crate resource (`deno`), so
there's some value to the idea now.

I established a standard approach for checking crate versions in a
somewhat recent `pngquant` `livecheck` block update and this commit
reworks it into a strategy, so we won't have to duplicate that
`livecheck` block in these cases. With this strategy, we usually
won't even need a `livecheck` block at all.

Under normal circumstances, a regex and/or strategy block shouldn't
be necessary but the strategy supports them when needed. The response
from the crates.io API is a JSON object, so this uses
`Json#versions_from_content` internally and a `strategy` block will
receive the parsed `json` object and a regex (the strategy default or
the regex from the `livecheck` block).
2024-02-11 21:53:21 -05:00
Douglas Eichelberger
2be13eb715 brew style --fix 2024-02-11 14:35:42 -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
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