3127 Commits

Author SHA1 Message Date
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
Eric Knibbe
e63b1f4da5
docs: monospace suggested values 2024-02-04 15:42:26 +01:00
apainintheneck
ba3a0f8c33
dev-cmd/generate-formula-api: generate homebrew-core.json
This adds the code to generate the homebrew-core.json file which
represents the entire tap instead of just the previous array of
formula hashes. Any shared logic has been moved into the top-level
hash scope including aliases, renames, tap_git_head and tap_migrations.

I also added a check to skip adding the variations hash to the api
hash if it is empty.

Now we're down to 10MB from 24MB!!!
2024-02-04 13:50:57 +01:00
Douglas Eichelberger
8156c5d140 Audit remaining commands 2024-01-31 20:02:33 -08:00
Douglas Eichelberger
07eb24d220 Add missing SystemCommand::Mixin to update-sponsors 2024-01-31 19:55:13 -08:00
Bo Anderson
f5068ab317
Merge pull request #16558 from dduugg/mechanize-fixes
Fix mechanize vendoring; add RBI defs
2024-02-01 01:25:12 +00:00
Douglas Eichelberger
583852cb0a Add missing SystemCommand::Mixin to fix CI 2024-01-31 14:55:04 -08:00
Douglas Eichelberger
b94b584417 Clear mechanize versions before install 2024-01-31 09:41:49 -08:00
Douglas Eichelberger
36f64d6b30 Enable Style/TopLevelMethodDefinition 2024-01-26 11:37:11 -08:00
Mike McQuaid
3d03ed2710
Merge pull request #16515 from issyl0/bump-point-out-if-formulae-are-synced
dev-cmd/bump: Point out if formulae should be kept in sync with others
2024-01-26 14:04:20 +00:00
Mike McQuaid
8c2dcbac3d
Merge pull request #16530 from trail-of-forks/joesweeney/provenance-on-publish
Add option to retain tmpdir on pr-pull
2024-01-26 14:02:12 +00:00
Issy Long
bf44e74a01
Fix Sorbet - don't need the T.musts anymore 2024-01-25 23:11:37 +00:00
Joseph Sweeney
b261dc7798 Fix style 2024-01-25 11:50:19 -05:00
Joe Sweeney
a61cb1a4d0
Set GitHub workflow output correctly
Co-authored-by: Bo Anderson <mail@boanderson.me>
2024-01-25 11:45:20 -05:00
Joseph Sweeney
0b0d9a6066 Add option to retain tmpdir on pr-pull
This option will be used to generate build provenance in the
`publish-commit-bottles.yml` workflow in `Homebrew/homebrew-core`. It
adds a single flag that controls whether or not the temporary directory
where bottles are downloaded is retained.
2024-01-25 10:35:59 -05:00
Issy Long
1b5fa172bb
Split audit_synced_versions_formulae checks into reusable methods
- This way we can use them in the audit and in `bump`.
2024-01-24 14:01:01 +00:00
Mike McQuaid
86e1c8aacf
Merge pull request #16463 from dduugg/no-active-support
Remove ActiveSupport from runtime
2024-01-22 19:22:12 +00:00
Issy Long
22203fb6d9
dev-cmd/bump: Be more explicit that we have no PRs
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2024-01-21 19:41:49 +00:00
Issy Long
c7ed62a7d6
dev-cmd/bump: Point out if formulae should be kept in sync with others
- This will give some information to users of `brew bump` that they
  should keep the version of the formula in sync with other formulae.
- A future enhancement is actually making the bumping of the "related"
  formulae automatic with `--open-pr`. But for now, telling people so
  that they don't have to wait until `brew audit` fails either locally
  or in CI at a later stage is a good start.
2024-01-21 00:43:50 +00:00
Issy Long
de6ec7c54e
dev-cmd/bump: Don't fall over when retrieving PRs errors
- Instead, let the `pull_requests&.any?` check do its job and not show
  PRs that we couldn't find or fetch.
- In the `--debug` output, show the error message that we got from GitHub.
2024-01-20 16:41:47 +00:00
Douglas Eichelberger
0cdd4eee3b Add Hash#deep_merge to extend/ 2024-01-19 13:36:16 -08:00
Issy Long
f682147598
Fix RuboCop Style/RedundantFreeze offenses 2024-01-18 22:20:01 +00:00