Mike McQuaid
d3ea535a9a
dev-cmd/bump: handle no formula tap case.
...
Fixes https://github.com/Homebrew/brew/issues/16913
2024-03-19 08:52:28 +00:00
Douglas Eichelberger
2cc3ce9bb4
Merge pull request #16815 from dduugg/abstract-command
...
Provide interface and individual namespaces for brew CLI commands
2024-03-18 08:11:52 -07:00
Mike McQuaid
fbc2b7da62
Merge pull request #16904 from cho-m/bump-formula-pr-partial-versions
...
dev-cmd/bump-formula-pr: replace partial version in URL
2024-03-18 12:51:20 +00:00
Michael Cho
709afd58ed
dev-cmd/bump-formula-pr: replace partial version in URL
...
For now, restrict to partial version excluding the last part, i.e.
version with major.minor.patch will result in attempting to replace any
occurrences of "/#{major}.#{minor}/" or "/v#{major}.#{minor}/".
This should take care of common situations like GNOME, KDE, and
SourceForge URLs. It should also help with URLs like `util-linux`.
It may result in incorrect replacements if URL has partial version based
on another versioning scheme like the API version or if there are some
equivalent numbers in URL that happen to match
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-17 13:03:43 -04:00
Michael Cho
3021ba91fd
dev-cmd/create: add types
...
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-17 11:33:47 -04:00
Bo Anderson
8102e239f9
Merge pull request #16887 from Homebrew/bump-no-repology
...
dev-cmd/bump: skip Repology checks in CI for livecheckables
2024-03-16 03:13:47 +00:00
Bo Anderson
7b0c3d54f1
utils/github: use GraphQL PR searching
2024-03-15 21:27:05 +00:00
Douglas Eichelberger
aad08cd5a4
Revert using hash accessors for args
2024-03-15 12:51:03 -07:00
Douglas Eichelberger
fd652148fa
Implement cmd_args block
2024-03-15 12:46:05 -07:00
Douglas Eichelberger
2dceb65b42
Port prof to use AbstractCommand
2024-03-15 12:46:05 -07:00
Bo Anderson
f3a99ca676
dev-cmd/bump: skip Repology checks in CI for livecheckables
2024-03-14 03:53:47 +00:00
Mike McQuaid
b1990ed4b6
Merge pull request #16863 from apainintheneck/memoize-installed-tap-loading-v2
...
Memoize installed tap loading v2
2024-03-12 08:36:09 +00:00
Bo Anderson
d1cebef8c5
dev-cmd/pr-*: remove Oxford commas previously missed by linter
2024-03-10 22:31:44 +00:00
apainintheneck
fb8c0d2b30
s/Tap.select(&:installed?)/Tap.installed/
2024-03-08 23:22:00 -08:00
Mike McQuaid
b70884a474
Merge pull request #16848 from Homebrew/rubocop_default_hash_syntax
...
rubocop: default hash syntax.
2024-03-08 07:55:33 +00:00
apainintheneck
e0cea903ec
s/to_api_hash/to_internal_api_hash/
2024-03-07 20:29:58 -08:00
apainintheneck
12d5a40262
dev-cmd/generate-cask-api: start generating cask internal JSON v3
...
This adds a new file to the output of `brew generate-cask-api` which
represents the new internal JSON v3 file. It involves removing
a bunch of unneeded hash keys while removing blank ones as well.
I've made some slight changes to the cask loader as well but more
might be necessary before this starts loading things correctly.
The full loader code will be added in a separate PR.
2024-03-07 20:29:58 -08:00
Mike McQuaid
ea2892f8ee
brew.rb: handle missing args.
2024-03-07 16:20:20 +00:00
Michael Cho
2d9b352ad7
Merge pull request #16837 from cho-m/bump-replace-untyped-args
...
dev-cmd/bump: change `args` type to `CLI::Args`
2024-03-07 10:08:38 -05:00
Mike McQuaid
b97c29a466
Merge pull request #16842 from dduugg/fix-execs
...
Apply 'chmod -x' to executables without shebangs
2024-03-07 08:41:29 +00:00
Douglas Eichelberger
fe439e8320
Apply 'chmod -x' to executables without shebangs
2024-03-06 22:22:49 -08:00
Michael Cho
12d1e56ff5
dev-cmd/bump: skip autobump formulae & casks
...
Instead output a message that corresponding formula/cask is on the
autobump list. This avoids deferring the information to the error
message within `bump-{formula,cask}-pr`.
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-06 12:34:29 -05:00
Michael Cho
030980164d
dev-cmd/bump: change args
type to CLI::Args
...
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-06 11:13:33 -05:00
Justin Klaassen
009ddd7036
dev-cmd/bump: add --tap=
flag
2024-03-05 18:11:53 -08:00
Mike McQuaid
261131eb98
Merge pull request #16801 from cho-m/move-synced-to-tap
...
tap: move synced_versions_formulae.json from formula_auditor
2024-03-04 09:31:53 +00:00
Mike McQuaid
8d463b1f4b
Merge pull request #16772 from cho-m/pypi-specify-dependencies
...
utils/pypi: specify dependencies needed to update resources
2024-03-04 09:24:51 +00:00
Michael Cho
72f8399110
formula_auditor: move out synced_versions_formulae logic
...
* tap: take ownership of synced_versions_formulae.json
* formula: add synced_with_other_formulae? logic
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-03 20:51:09 -05:00
Michael Cho
216f571fff
bump-formula-pr: switch to install resource update dependencies
...
Also same feature for update-python-resources
2024-03-02 22:01:31 -05:00
Michka Popoff
f96290eb39
bump-formula|cask-pr: do not allow to bump autobumped packages
...
Avoids:
- Bumping stuff by mistake that will get autobumped anyway
- Abusing the system to get "free" commits
2024-03-01 09:15:43 +00:00
Markus Reiter
3da0f8c4a6
Fix loading casks/formulae from relative paths.
2024-03-01 04:05:15 +01:00
Mike McQuaid
2aa8040265
Merge pull request #16768 from Homebrew/parse-source-checksum-correctly-in-json-v3
...
internal json v3: parse ruby source checksum correctly
2024-02-29 10:45:28 +00:00
Mike McQuaid
0604b5e9a8
Merge pull request #16767 from cho-m/bump-sync-msg-all-latest
...
dev-cmd/bump: hide version syncing when empty list
2024-02-29 10:42:06 +00:00
apainintheneck
cd5b93a2f2
internal json v3: parse ruby source checksum correctly
...
Currently we are including this in the API but not actually
parsing and loading it correctly from the JSON. I think this
was an oversight when addressing feedback and refactoring
the JSON shape. Not a big deal, of course, because I'm the
only person using it right now.
I found this out while testing installs using the API and I got
this error while running `brew reinstall tree`.
```
Warning: Cannot verify integrity of '60fc4212023d3fef00e6de4b9f3f0d63402cf3eca00778d09f4f2d3481b524a1--tree.rb'.
No checksum was provided.
```
2024-02-28 21:34:31 -08:00
Michael Cho
387bfd972e
dev-cmd/bump: hide version syncing when empty list
2024-02-28 14:41:39 -05:00
apainintheneck
cefd3273cc
tap: Add helper to generate core formula API hash
...
This abstracts away this helper to make it easier to test and
reason about.
2024-02-27 20:55:16 -08:00
Bo Anderson
1d7101d8a3
Use HOMEBREW_TEMP more universally
2024-02-26 16:58:53 +00:00
Issy Long
f4218a6316
Fix RuboCop Performance/MapCompact
offenses
...
- Rename an iterator variable since it would make the line too long.
2024-02-25 22:59:59 +00:00
Patrick Linnane
9092f760fb
dev-cmd/bump: add --no-fork
switch
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-02-23 12:20:59 -08:00
Markus Reiter
ab27efbd9d
Make Tap::each
respect the API.
2024-02-22 17:56:47 +01:00
Michael Cho
fed4e78e23
test: prune test deps of dependencies
2024-02-21 15:03:46 -05:00
Douglas Eichelberger
d05e9c5473
Add tapioca config
2024-02-16 15:07:01 -08:00
Mike McQuaid
d6ab8b1664
Merge pull request #16674 from abitrolly/patch-1
...
Ask to use HOMEBREW_NO_INSTALL_FROM_API=1 for audit
2024-02-16 08:42:32 +00:00
Anatoli Babenia
55a37b2148
Ask to use HOMEBREW_NO_INSTALL_FROM_API=1 for audit
2024-02-16 08:45:05 +03:00
Mike McQuaid
7df07b991b
dev-cmd/bump*: do not allow forcing multiple PRs.
...
If there are duplicate PRs: we shouldn't suggest and allow a trivial
override. Instead, they should be created manually.
An undocumented override exists for BrewTestBot to do autobumps.
2024-02-15 17:02:31 +00:00
Douglas Eichelberger
1b84c5c8c2
Add upstream JSON generator modules
2024-02-11 20:27:39 -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
5b5cfe89de
Resolve violations from removing hidden.rbi
2024-02-11 20:27:38 -08:00
Douglas Eichelberger
b2dc842238
wip
2024-02-11 20:27:38 -08:00
Kevin
d94772171f
Merge pull request #16541 from apainintheneck/next-gen-api-formula-json-v3
...
Next gen api formula json v3
2024-02-04 11:16:01 -08:00