3369 Commits

Author SHA1 Message Date
Douglas Eichelberger
21c84553cf Port Homebrew::DevCmd::DispatchBuildBottle 2024-03-21 19:04:30 -07:00
Douglas Eichelberger
19f9c52652 Port Homebrew::DevCmd::DetermineTestRunners 2024-03-21 19:04:30 -07:00
Douglas Eichelberger
9297a850aa Port Homebrew::DevCmd::Create 2024-03-21 19:04:30 -07:00
Douglas Eichelberger
1db309f024 Fix typo'd class name 2024-03-21 17:41:31 -07:00
Michael Cho
43e2e28869
dev-cmd/bump-formula-pr: clean up unused code
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-21 10:11:50 -04:00
Michael Cho
bfec6eecac
livecheck: support throttle DSL
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-21 10:11:49 -04:00
Razvan Azamfirei
4129200b96
livecheck: add --extract-plist switch 2024-03-21 11:50:27 +00:00
Douglas Eichelberger
b48f85f991 Fix nil repositories in dev-cmd bump 2024-03-20 13:40:35 -07:00
Douglas Eichelberger
6b19bc5535 Style cleanup 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
0373e0dc29 Port Homebrew::DevCmd::Contributions 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
777ee12258 Port Homebrew::DevCmd::Command 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
55a0991902 Port Homebrew::DevCmd::Cat 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
df42e9cfb3 Port Homebrew::DevCmd::Bump 2024-03-20 10:36:10 -07:00
Douglas Eichelberger
c70dc040c6 Port Homebrew::DevCmd::BumpUnversionedCask 2024-03-20 10:25:18 -07:00
Douglas Eichelberger
1097496a06 Port Homebrew::DevCmd::BumpRevision 2024-03-20 10:25:18 -07:00
Douglas Eichelberger
d873881c47 Port Homebrew::DevCmd::BumpFormulaPr 2024-03-20 10:25:17 -07:00
Douglas Eichelberger
ebc458a7fe Port Homebrew::DevCmd::BumpCaskPr 2024-03-20 10:16:17 -07:00
Douglas Eichelberger
ee0c967ce0 Port Homebrew::DevCmd::Bottle 2024-03-20 10:16:17 -07:00
Douglas Eichelberger
0f2efd3939 Port Homebrew::DevCmd::Audit 2024-03-20 10:16:17 -07:00
Mike McQuaid
f99c9c7a7b
Merge pull request #16915 from Homebrew/bump_no_tap
dev-cmd/bump: handle no formula tap case.
2024-03-20 08:27:49 +00:00
Eric Knibbe
afbf6a1e2c
bump-formula-pr: fix type of detected version
Fixes #16917.
2024-03-19 22:44:05 -04:00
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