Skip to content

Autobump restrictions make opening PRs with bump-cask-pr overly complicated #218095

Open
@i0ntempest

Description

@i0ntempest

Verification

Description of issue

For months or maybe years HB has been making opening PRs with bump-cask-pr command harder and harder. First you disabled then removed --force, and now you don't want PRs to be opened for casks in autobump.txt, even for updating hashes with --sha256.
I just encountered a checksum error with cask aldente, so I tried to update its hash with bump-cask-pr, got told it's has autobump, and then found out the previous workaround (removing the cask from the local autobump.txt) has also stopped working. So now I need to manually open the PR, making what can be done in 10 seconds a 5-minute job.
I have had enough and decided open this issue - IMHO this is too many restrictions.

Command that failed

brew bump-cask-pr --verbose --debug aldente --sha256 f7a18475d6217fd101b45eb1d7d64502b301ad4b957087b6b0d018a833fae02c

Output of command with --verbose --debug

/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/bin/bundle clean
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromNameLoader): loading aldente
Error: Whoops, the aldente cask has its version update
pull requests automatically opened by BrewTestBot every ~3 hours!
We'd still love your contributions, though, so try another one
that is excluded from autobump list (i.e. it has 'no_autobump!'
method or 'livecheck' block with 'skip'.)
Error: Kernel.exit
/opt/homebrew/Library/Homebrew/extend/kernel.rb:134:in 'Kernel#exit'
/opt/homebrew/Library/Homebrew/extend/kernel.rb:134:in 'Kernel#odie'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12117/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12117/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12117/lib/types/private/methods/_methods.rb:277:in 'block in Kernel#_on_method_added'
/opt/homebrew/Library/Homebrew/dev-cmd/bump-cask-pr.rb:79:in 'Homebrew::DevCmd::BumpCaskPr#run'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12117/lib/types/private/methods/call_validation.rb:282:in 'UnboundMethod#bind_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12117/lib/types/private/methods/call_validation.rb:282:in 'T::Private::Methods::CallValidation.validate_call'
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/gems/sorbet-runtime-0.5.12117/lib/types/private/methods/_methods.rb:277:in 'block in Homebrew::DevCmd::BumpCaskPr#_on_method_added'
/opt/homebrew/Library/Homebrew/brew.rb:95:in '<main>'

Output of brew doctor and brew config

HOMEBREW_VERSION: 4.5.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: c19f08b3e8ea46ba94bd9315c46c0dda10ead31c
Last commit: 5 days ago
Branch: stable
Core tap HEAD: b25b9f1072c5ade17c08e01b564a6b7dcb12293a
Core tap last commit: 54 minutes ago
Core cask tap HEAD: 5ba330d00024429262b6b985a01ef3efd8795597
Core cask tap last commit: 75 minutes ago
Core cask tap JSON: 26 Jun 18:46 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.mwasmKYZgO/org.macports:0
HOMEBREW_EDITOR: /opt/local/bin/nano
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_INSTALL_FROM_API: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.4.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/bin/ruby
CPU: deca-core 64-bit arm_donan
Clang: 17.0.0 build 1700
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.6-arm64
CLT: 16.4.0.0.1.1747106510
Xcode: 16.4
Rosetta 2: false

Output of brew tap

gcenx/wine
homebrew/cask
homebrew/core

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions