Skip to content

tng-digital-mini-program-studio: bump --open-pr: Error: Invalid usage: --version must not be empty #224962

@osalbahr

Description

@osalbahr

Verification

Description of issue

I discovered this issue by running brew bump --open-pr --eval-all --start-with t which fails at tng-digital-mini-program-studio rather than continuing to the next formula/cask.

Command that failed

brew bump --open-pr tng-digital-mini-program-studio

Output of command with --verbose --debug

/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin/bundle clean
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading tng-digital-mini-program-studio
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromNameLoader): loading tng-digital-mini-program-studio
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromPathLoader): loading /opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/t/tng-digital-mini-program-studio.rb
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromPathLoader): loading /opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/t/tng-digital-mini-program-studio.rb
/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin:/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/adminaccount gh auth token --hostname github.com
/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin:/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/adminaccount gh auth token --hostname github.com
/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin:/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/adminaccount gh auth token --hostname github.com
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.6.4-109-g3bbff84\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.6\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --location https://api.github.com/graphql --header Accept:\ application/vnd.github+json --write-out '
'\%\{http_code\} --header Authorization:\ token\ ****** --header X-GitHub-Api-Version:2022-11-28 --data @/private/tmp/github_api_post20250822-52276-lyh58s --request POST --dump-header /private/tmp/github_api_headers20250822-52276-zx4zoa
/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin:/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/adminaccount gh auth token --hostname github.com
/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin:/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/adminaccount gh auth token --hostname github.com
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.6.4-109-g3bbff84\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.6\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --location https://api.github.com/graphql --header Accept:\ application/vnd.github+json --write-out '
'\%\{http_code\} --header Authorization:\ token\ ****** --header X-GitHub-Api-Version:2022-11-28 --data @/private/tmp/github_api_post20250822-52276-f3zmr2 --request POST --dump-header /private/tmp/github_api_headers20250822-52276-b9ygju
==> tng-digital-mini-program-studio
Current cask version:     arm:   3.7.1031
                          intel: 3.7.1032
Latest livecheck version: skipped
Duplicate pull requests:  none
Maybe duplicate pull requests: none

/usr/bin/env PATH=/opt/homebrew/opt/gh/bin:/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin:/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin:/opt/homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/Users/adminaccount gh auth token --hostname github.com
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.6.4-109-g3bbff84\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.6\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --location https://api.github.com/graphql --header Accept:\ application/vnd.github+json --write-out '
'\%\{http_code\} --header Authorization:\ token\ ****** --header X-GitHub-Api-Version:2022-11-28 --data @/private/tmp/github_api_post20250822-52276-k60yio --request POST --dump-header /private/tmp/github_api_headers20250822-52276-ib2hh6

Usage: brew bump-cask-pr [options] cask

Create a pull request to update cask with a new version.

A best effort to determine the SHA-256 will be made if the value is not
supplied by the user.

  -n, --dry-run                    Print what would be done rather than doing
                                   it.
      --write-only                 Make the expected file modifications without
                                   taking any Git actions.
      --commit                     When passed with --write-only, generate a
                                   new commit after writing changes to the cask
                                   file.
      --no-audit                   Don't run brew audit before opening the PR.
      --no-style                   Don't run brew style --fix before opening
                                   the PR.
      --no-browse                  Print the pull request URL instead of opening
                                   in a browser.
      --no-fork                    Don't try to fork the repository.
      --version                    Specify the new version for the cask.
      --version-arm                Specify the new cask version for the ARM
                                   architecture.
      --version-intel              Specify the new cask version for the Intel
                                   architecture.
      --message                    Prepend message to the default pull request
                                   message.
      --url                        Specify the URL for the new download.
      --sha256                     Specify the SHA-256 checksum of the new
                                   download.
      --fork-org                   Use the specified GitHub organization for
                                   forking.
  -d, --debug                      Display any debugging information.
  -q, --quiet                      Make some output more quiet.
  -v, --verbose                    Make some output more verbose.
  -h, --help                       Show this message.

Error: Invalid usage: `--version` must not be empty.

Output of brew doctor and brew config

% brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed casks are deprecated or disabled.
You should find replacements for the following casks:
  fedora-media-writer
  microsoft-remote-desktop
  vmware-fusion

% brew config
HOMEBREW_VERSION: 4.6.4-109-g3bbff84
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3bbff84ff1e6194f57080b50d755e99beb07541d
Last commit: 74 minutes ago
Branch: main
Core tap HEAD: a18ddd0743c7c5f84b714f9f21f43a1351a83620
Core tap last commit: 76 minutes ago
Core tap JSON: 22 Aug 10:22 UTC
Core cask tap HEAD: 1f26ad3f2b6f11d207ad5f31da1a2357196fb216
Core cask tap last commit: 10 minutes ago
Core cask tap JSON: 22 Aug 10:22 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.FqfPc7sHfx/org.xquartz:0
HOMEBREW_DOWNLOAD_CONCURRENCY: 20
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.4.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin/ruby
CPU: deca-core 64-bit arm_blizzard_avalanche
Clang: 17.0.0 build 1700
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.6-arm64
CLT: 26.0.0.0.1749212127
Xcode: N/A
Rosetta 2: false

Output of brew tap

homebrew/cask
homebrew/core
osalbahr/mirafetch

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