Skip to content

brew info --json=v2 --installed --formula returns casks #22850

Description

@balupton

brew doctor output

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:
  electorrent
  font-ibm-plex

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  icu4c@77
  python@3.9

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:
  ruby

Warning: The following taps are not trusted:
  amiaopensource/amiaos
  bufbuild/buf
  charmbracelet/tap
  clementtsang/bottom
  dr-emann/tap
  finnvoor/tools
  greymd/tools
  homebrew-ffmpeg/ffmpeg
  lescanauxdiscrets/tap
  owenthereal/upterm
  pkgxdev/made
  powershell/tap
  rsteube/tap
  sandreas/tap
  tabbyml/tabby
  yt-dlp/taps

Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required.
Prefer trusting only the specific formulae, casks or commands you need.
Trust installed formulae from these taps with:
  brew trust --formula amiaopensource/amiaos/decklinksdk
  brew trust --formula charmbracelet/tap/crush
  brew trust --formula dr-emann/tap/applesauce
  brew trust --formula finnvoor/tools/fx-upscale
  brew trust --formula homebrew-ffmpeg/ffmpeg/ffmpeg
  brew trust --formula lescanauxdiscrets/tap/zvbi
  brew trust --formula powershell/tap/powershell
  brew trust --formula rsteube/tap/carapace
  brew trust --formula sandreas/tap/m4b-tool
  brew trust --formula tabbyml/tabby/tabby
Trust other specific casks and commands with:
  brew trust --cask <user>/<tap>/<cask>
  brew trust --command <user>/<tap>/<command>
Whole-tap trust is broader and includes all current and future formulae,
casks and commands from the listed taps. Trust whole taps with:
  brew trust amiaopensource/amiaos bufbuild/buf charmbracelet/tap clementtsang/bottom dr-emann/tap finnvoor/tools greymd/tools homebrew-ffmpeg/ffmpeg lescanauxdiscrets/tap owenthereal/upterm pkgxdev/made powershell/tap rsteube/tap sandreas/tap tabbyml/tabby yt-dlp/taps
Untap them with:
  brew untap amiaopensource/amiaos bufbuild/buf charmbracelet/tap clementtsang/bottom dr-emann/tap finnvoor/tools greymd/tools homebrew-ffmpeg/ffmpeg lescanauxdiscrets/tap owenthereal/upterm pkgxdev/made powershell/tap rsteube/tap sandreas/tap tabbyml/tabby yt-dlp/taps
For more information, see:
  https://docs.brew.sh/Tap-Trust

Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /opt/homebrew/sbin.
Consider setting your PATH for example like so:
  echo 'export PATH="/opt/homebrew/sbin:$PATH"' >> /Users/balupton/.bash_profile

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

HOMEBREW_VERSION: 6.0.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 5c38c6b3fc42281af432cda526dd0509172f681b
Last commit: 7 hours ago
Branch: stable
Core tap: N/A
Core cask tap: N/A
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DOWNLOAD_CONCURRENCY: 16
HOMEBREW_EDITOR: vim
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_ENV_HINTS: set
HOMEBREW_REQUIRE_TAP_TRUST: set
Homebrew Ruby: 4.0.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.5_1/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 21.0.0 build 2100
Git: 2.54.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.5.1-arm64
CLT: 26.5.0.0.1777544298
Xcode: 26.5
Metal Toolchain: N/A
Rosetta 2: false

What were you trying to do (and why)?

Been using brew info --json=v2 to get a programatic list of packages that are outdated. And noticed, that it doesn't respect the --formula option.

What happened (include all command output)?

$ brew info --json=v2 --installed --formula | jq '.casks | length'
64
$ brew info --json=v2 --formula | jq '.casks | length'
Warning: Skipping amiaopensource/amiaos because it is not trusted. Run `brew trust amiaopensource/amiaos` to trust it.
Warning: Skipping bufbuild/buf because it is not trusted. Run `brew trust bufbuild/buf` to trust it.
Warning: Skipping charmbracelet/tap because it is not trusted. Run `brew trust charmbracelet/tap` to trust it.
Warning: Skipping clementtsang/bottom because it is not trusted. Run `brew trust clementtsang/bottom` to trust it.
Warning: Skipping dr-emann/tap because it is not trusted. Run `brew trust dr-emann/tap` to trust it.
Warning: Skipping finnvoor/tools because it is not trusted. Run `brew trust finnvoor/tools` to trust it.
Warning: Skipping greymd/tools because it is not trusted. Run `brew trust greymd/tools` to trust it.
Warning: Skipping homebrew-ffmpeg/ffmpeg because it is not trusted. Run `brew trust homebrew-ffmpeg/ffmpeg` to trust it.
Warning: Skipping lescanauxdiscrets/tap because it is not trusted. Run `brew trust lescanauxdiscrets/tap` to trust it.
Warning: Skipping pkgxdev/made because it is not trusted. Run `brew trust pkgxdev/made` to trust it.
Warning: Skipping powershell/tap because it is not trusted. Run `brew trust powershell/tap` to trust it.
Warning: Skipping rsteube/tap because it is not trusted. Run `brew trust rsteube/tap` to trust it.
Warning: Skipping sandreas/tap because it is not trusted. Run `brew trust sandreas/tap` to trust it.
Warning: Skipping tabbyml/tabby because it is not trusted. Run `brew trust tabbyml/tabby` to trust it.
Warning: Skipping owenthereal/upterm because it is not trusted. Run `brew trust owenthereal/upterm` to trust it.
Warning: Skipping rsteube/tap because it is not trusted. Run `brew trust rsteube/tap` to trust it.
7725

What did you expect to happen?

It to not return any casks.

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

see earlier

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions