Skip to content

brew bundle list --go outputs invalid go package command-line-arguments #20867

@gforien

Description

@gforien

brew doctor output

❯ 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:
  chromium
  disk-inventory-x
  graphiql

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
  dog

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  sshfs-mac
  hey
  icu4c@76
  node@16
  postgresql@14
  [email protected]
  termshark
  tldr

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  wireshark

Verification

  • I ran brew update twice and am still able to reproduce my issue.
  • My "brew doctor output" above says Your system is ready to brew or a definitely unrelated Tier message.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

❯ brew config
HOMEBREW_VERSION: 4.6.16-117-g82266fb
ORIGIN: https://github.com/Homebrew/brew
HEAD: 82266fb00084f584a1b1e1dbed788c35bdc1ea92
Last commit: 4 hours ago
Branch: main
Core tap HEAD: 3b77a9877bcc0a6e458abbb832702f9297e54be3
Core tap last commit: 68 minutes ago
Core tap JSON: 13 Oct 10:44 UTC
Core cask tap JSON: 13 Oct 10:44 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_BAT: set
HOMEBREW_BAT_THEME: Monokai Extended
HOMEBREW_CASK_OPTS: ["--no-quarantine"]
HOMEBREW_EDITOR: vim
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 14
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_ENV_HINTS: set
HOMEBREW_NO_UPDATE_REPORT_NEW: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.4.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin/ruby
CPU: 14-core 64-bit arm_brava
Clang: 17.0.0 build 1700
Git: 2.51.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.0.1-arm64
CLT: 26.0.0.0.1.1757719676
Xcode: 26.0.1
Rosetta 2: false

What were you trying to do (and why)?

Running brew bundle dump for the first time following #20798

What happened (include all command output)?

brew bundle list --go output contains this line

command-line-arguments

Brewfile contains this line

go "command-line-arguments"

Full output

❯ brew bundle list --go
golang.org/x/tools/cmd/callgraph
github.com/spf13/cobra-cli
github.com/ayn2op/discordo
github.com/go-delve/delve/cmd/dlv
github.com/k-lar/dynomark
github.com/davidrjenni/reftools/cmd/fillstruct
github.com/davidrjenni/reftools/cmd/fillswitch
github.com/gforien/ghtui
github.com/onsi/ginkgo/v2/ginkgo
github.com/gforien/git-open/cmd/git-open
github.com/gforien/git-split/cmd/git-split
github.com/gforien/git-split/cmd/git-split-editor
github.com/abice/go-enum
golang.org/x/tools/cmd/godoc
mvdan.cc/gofumpt
golang.org/x/tools/cmd/goimports
github.com/twpayne/go-jsonstruct/v3/cmd/gojsonstruct
github.com/golangci/golangci-lint/v2/cmd/golangci-lint
github.com/segmentio/golines
github.com/fatih/gomodifytags
github.com/abenz1267/gomvp
golang.org/x/tools/cmd/gonew
golang.org/x/tools/gopls
github.com/x-motemen/gore/cmd/gore
golang.org/x/tools/cmd/gorename
github.com/cweill/gotests/gotests
gotest.tools/gotestsum
golang.org/x/vuln/cmd/govulncheck
github.com/gonejack/hsize
github.com/koron/iferr
github.com/josharian/impl
github.com/tmc/json-to-struct
github.com/particledecay/kconf
command-line-arguments
github.com/hloiseaufcms/mcp-gopls/cmd/mcp-gopls
go.uber.org/mock/mockgen
github.com/soulteary/nginx-formatter
github.com/kyoh86/richgo
github.com/mozillazg/go-slugify/slugify
honnef.co/go/tools/cmd/staticcheck
github.com/gforien/tfb/cmd/tfb
github.com/helmfile/vals/cmd/vals
github.com/dkyanakiev/vaulty/cmd/vaul7y
github.com/muety/wakapi
github.com/hajimehoshi/wasmserve

What did you expect to happen?

Is this expected ?
This does not look like a valid go package name

Step-by-step reproduction instructions (by running brew commands)

brew bundle list --go

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