-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] Failed at command: /opt/homebrew/bin/brew info --json=v1 --eval-all Error: formulae require at least a URL #282
Comments
It could be related with issues such as: Could you please give me
It may takes a time, but will show which formula makes the error. |
Thanks for looking into this. The error does look really similar so I think you're probably right. I have tried running this command without |
Could you give me Not sure what is different in the command before and after installing To check which formula is wrong after installing
|
It looks like $ brew ls
# gets stuck Also, FWIW, when I uninstall ❯ brew uninstall rcmdnk/file/brew-file
Uninstalling /opt/homebrew/Cellar/brew-file/9.0.16... (11 files, 189.3KB)
[ERROR] Failed at command: /opt/homebrew/bin/brew info --json=v1 --eval-all
Error: formulae require at least a URL
/opt/homebrew/Library/Homebrew/formula.rb:319:in `determine_active_spec'
/opt/homebrew/Library/Homebrew/formula.rb:253:in `initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `new'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:1016:in `factory'
/opt/homebrew/Library/Homebrew/formula.rb:2139:in `block in all'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `each'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `filter_map'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `all'
/opt/homebrew/Library/Homebrew/cmd/info.rb:201:in `print_json'
/opt/homebrew/Library/Homebrew/cmd/info.rb:98:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:94:in `<main>'
Please report this issue:
https://docs.brew.sh/Troubleshooting
Once uninstalled, I see all of the results as expected: ❯ brew ls -1
==> Formulae
actionlint
aom
aribb24
autoconf
automake
bat
bat-extras
bottom
brotli
bun
ca-certificates
cairo
chafa
chezmoi
cjson
cmake
cmake-docs
comby
coreutils
ctags
curl
dav1d
dust
expat
fd
ffmpeg
fish
flac
fontconfig
freetype
frei0r
fribidi
fzf
gdk-pixbuf
gettext
gh
ghostscript
giflib
git
git-gui
glib
gmp
gnutls
gping
graphite2
harfbuzz
highway
hurl
icu4c
imagemagick
imath
jasper
jbig2dec
jira-cli
jless
jpeg-turbo
jpeg-xl
jq
lame
leiningen
leptonica
libapplewm
libarchive
libass
libb2
libbluray
libde265
libev
libevent
libfontenc
libgit2
[email protected]
libheif
libice
libidn
libidn2
liblqr
libmicrohttpd
libnghttp2
libogg
libomp
libpng
libraw
librist
librsvg
libsamplerate
libsm
libsndfile
libsodium
libsoxr
libssh
libssh2
libtasn1
libtiff
libtool
libunibreak
libunistring
libuv
libvidstab
libvmaf
libvorbis
libvpx
libvterm
libx11
libxau
libxcb
libxdmcp
libxext
libxfixes
libxfont2
libxi
libxinerama
libxkbcommon
libxkbfile
libxmu
libxrandr
libxrender
libxt
libxtst
libyaml
little-cms2
llvm
lpeg
lsd
luajit
luv
lz4
lzo
m4
mas
mbedtls
mesa
mise
mpdecimal
mpg123
msgpack
ncurses
neovim
nettle
oniguruma
opencore-amr
openexr
openjdk
openjpeg
openssl@3
opus
p11-kit
pango
pcre
pcre2
pixman
pkg-config
[email protected]
rav1e
readline
reattach-to-user-namespace
ripgrep
rtmpdump
rubberband
rust
sdl2
shared-mime-info
snappy
speedtest
speex
sqlite
srt
starship
stylua
svt-av1
tcl-tk
terraform
tesseract
theora
tmux
tree
tree-sitter
unbound
unibilium
usage
utf8proc
webp
wget
x264
x265
xauth
xcb-util
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xdotool
xkbcomp
xkeyboardconfig
xorg-server
xorgproto
xvid
xxhash
xz
yazi
z3
zeromq
zimg
zoxide
zstd
==> Casks
alex313031-thorium
alt-tab
dbeaver-community
discord
docker
drawio
firefox
font-jetbrains-mono-nerd-font
google-chrome
jellyfin
obs
postgres-unofficial
postman
qbittorrent
raindropio
raspberry-pi-imager
rectangle
roboform
signal
slack
tidal
tor-browser
vitalsource-bookshelf
zoom When I run ❯ for f in $(brew ls --formula);do echo $f;if ! json=$(brew info --json=v1 $f 2>&1);then echo $json;fi;done
actionlint
aom
aribb24
autoconf
automake
bat
bat-extras
bottom
brotli
bun
ca-certificates
cairo
chafa
chezmoi
cjson
cmake
cmake-docs
comby
coreutils
ctags
curl
dav1d
dust
expat
fd
ffmpeg
fish
flac
fontconfig
freetype
frei0r
fribidi
fzf
gdk-pixbuf
gettext
gh
ghostscript
giflib
git
git-gui
glib
gmp
gnutls
gping
graphite2
harfbuzz
highway
hurl
icu4c
imagemagick
imath
jasper
jbig2dec
jira-cli
jless
jpeg-turbo
jpeg-xl
jq
lame
leiningen
leptonica
libapplewm
libarchive
libass
libb2
libbluray
libde265
libev
libevent
libfontenc
libgit2
[email protected]
libheif
libice
libidn
libidn2
liblqr
libmicrohttpd
libnghttp2
libogg
libomp
libpng
libraw
librist
librsvg
libsamplerate
libsm
libsndfile
libsodium
libsoxr
libssh
libssh2
libtasn1
libtiff
libtool
libunibreak
libunistring
libuv
libvidstab
libvmaf
libvorbis
libvpx
libvterm
libx11
libxau
libxcb
libxdmcp
libxext
libxfixes
libxfont2
libxi
libxinerama
libxkbcommon
libxkbfile
libxmu
libxrandr
libxrender
libxt
libxtst
libyaml
little-cms2
llvm
lpeg
lsd
luajit
luv
lz4
lzo
m4
mas
mbedtls
mesa
mise
mpdecimal
mpg123
msgpack
ncurses
neovim
nettle
oniguruma
opencore-amr
openexr
openjdk
openjpeg
openssl@3
opus
p11-kit
pango
pcre
pcre2
pixman
pkg-config
[email protected]
rav1e
readline
reattach-to-user-namespace
ripgrep
rtmpdump
rubberband
rust
sdl2
shared-mime-info
snappy
speedtest
speex
sqlite
srt
starship
stylua
svt-av1
tcl-tk
terraform
tesseract
theora
tmux
tree
tree-sitter
unbound
unibilium
usage
utf8proc
webp
wget
x264
x265
xauth
xcb-util
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xdotool
xkbcomp
xkeyboardconfig
xorg-server
xorgproto
xvid
xxhash
xz
yazi
z3
zeromq
zimg
zoxide
zstd Thanks again for looking into this. Seems like wherever things are erroring out it's a little hard to decipher. |
In case it's helpful. These are the outputs after ❯ brew config
HOMEBREW_VERSION: 4.3.19
ORIGIN: https://github.com/Homebrew/brew
HEAD: 1f9bd2de89883ec9a59db3eab0f5475bce06d5bc
Last commit: 9 hours ago
Core tap JSON: 02 Sep 18:07 UTC
Core cask tap JSON: 02 Sep 18:07 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.KH0B7Q6W3P/org.xquartz:0
HOMEBREW_EDITOR: nvim
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.46.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 14.6.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.4
Rosetta 2: false
❯ brew doctor
Your system is ready to brew.
|
there could be some conflicts with brew-wrap. Could you please try after installing homebrew-file (and set up brew-wrap):
|
If possible, could you please try bash?
|
Sure, here you go. These are what I get when running in ❯ type brew
brew is a shell function from /opt/homebrew/etc/brew-wrap
❯ type _post_brewfile_update
_post_brewfile_update is a shell function from /opt/homebrew/etc/brew-wrap
❯ brew ls
# hangs forever
❯ brew-file cat
[WARNING] Input file /Users/drew/projects/dotfiles/brewfile/Brewfile is not found.
Do you want to initialize from installed packages? [y/n]: When running # homebrew
if [ -f $(brew --prefix)/etc/brew-wrap ]; then
source $(brew --prefix)/etc/brew-wrap
fi Having a little trouble running ❯ brew --prefix
# never exits
❯ source $(brew --prefix)/etc/brew-wrap
# never exits |
Thanks. Regarding the issue where (This is actually a significant bug, and I really appreciate your efforts in debugging it!) So, first, could you please upgrade brew-file. I believe the
after installing brew-file. If that doesn't resolve the issue, you can try running the following commands with brew-file installed:
If it works, try also:
Bug Description: The issue occurred when the Brewfile was not initialized. The brew command, wrapped by brew-wrap, executes brew file cat. If the Brewfile does not exist, it prompts the user with:
However, the brew-wrap function hides this prompt, causing the process to hang. As of version 9.0.17, if the Brewfile is not initialized, brew file cat will now display an error, and brew-wrap will simply ignore the result of the cat command. |
Sure thing, this plugin seems really useful so I'm happy to help. After reinstalling the latest version of
❯ brew list --versions rcmdnk/file/brew-file
brew-file 9.0.17
❯ brew init
Do you want to set a repository (y)? ((n) for local Brewfile). [y/n]: y
Set repository,
"non" (or empty) for local Brewfile (/Users/drew/projects/dotfiles/brewfile/Brewfile),
/path/to/repo for local git repository,
https://your/git/repository (or ssh://[email protected]) for git repository,
or (<user>/)<repo> for github repository,
or full path for other git repository: non
################################
# Set Brewfile repository as non
################################
############################################################
# Initialize /Users/drew/projects/dotfiles/brewfile/Brewfile
############################################################
[ERROR] Failed at command: /opt/homebrew/bin/brew info --json=v1 --eval-all
Error: formulae require at least a URL
/opt/homebrew/Library/Homebrew/formula.rb:319:in `determine_active_spec'
/opt/homebrew/Library/Homebrew/formula.rb:253:in `initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `new'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:1016:in `factory'
/opt/homebrew/Library/Homebrew/formula.rb:2139:in `block in all'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `each'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `filter_map'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `all'
/opt/homebrew/Library/Homebrew/cmd/info.rb:201:in `print_json'
/opt/homebrew/Library/Homebrew/cmd/info.rb:98:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:94:in `<main>'
Please report this issue:
https://docs.brew.sh/Troubleshooting On the bright-side, looks like the latest version fixed the issue with ❯ for f in $(brew ls --formula);do echo $f;if ! json=$(brew info --json=v1 $f 2>&1);then echo $json;fi;done
actionlint
aom
aribb24
autoconf
automake
bat
bat-extras
bottom
brew-file
brotli
bun
ca-certificates
cairo
chafa
chezmoi
cjson
cmake
cmake-docs
comby
coreutils
ctags
curl
dav1d
dust
expat
fd
ffmpeg
fish
flac
fontconfig
freetype
frei0r
fribidi
fzf
gdk-pixbuf
gettext
gh
ghostscript
giflib
git
git-gui
glib
gmp
gnutls
gping
graphite2
harfbuzz
highway
hurl
icu4c
imagemagick
imath
jasper
jbig2dec
jira-cli
jless
jpeg-turbo
jpeg-xl
jq
lame
leiningen
leptonica
libapplewm
libarchive
libass
libb2
libbluray
libde265
libev
libevent
libfontenc
libgit2
[email protected]
libheif
libice
libidn
libidn2
liblqr
libmicrohttpd
libnghttp2
libogg
libomp
libpng
libraw
librist
librsvg
libsamplerate
libsm
libsndfile
libsodium
libsoxr
libssh
libssh2
libtasn1
libtiff
libtool
libunibreak
libunistring
libuv
libvidstab
libvmaf
libvorbis
libvpx
libvterm
libx11
libxau
libxcb
libxdmcp
libxext
libxfixes
libxfont2
libxi
libxinerama
libxkbcommon
libxkbfile
libxmu
libxrandr
libxrender
libxt
libxtst
libyaml
little-cms2
llvm
lpeg
lsd
luajit
luv
lz4
lzo
m4
mas
mbedtls
mesa
mise
mpdecimal
mpg123
msgpack
ncurses
neovim
nettle
oniguruma
opencore-amr
openexr
openjdk
openjpeg
openssl@3
opus
p11-kit
pango
pcre
pcre2
pixman
pkg-config
[email protected]
rav1e
readline
reattach-to-user-namespace
ripgrep
rtmpdump
rubberband
rust
sdl2
shared-mime-info
snappy
speedtest
speex
sqlite
srt
starship
stylua
svt-av1
tcl-tk
terraform
tesseract
theora
tmux
tree
tree-sitter
unbound
unibilium
usage
utf8proc
webp
wget
x264
x265
xauth
xcb-util
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xdotool
xkbcomp
xkeyboardconfig
xorg-server
xorgproto
xvid
xxhash
xz
yazi
z3
zeromq
zimg
zoxide
zstd Looks like this ends up displaying the same error as when I run ❯ brew info --json=v1 --eval-all
Error: formulae require at least a URL
/opt/homebrew/Library/Homebrew/formula.rb:319:in `determine_active_spec'
/opt/homebrew/Library/Homebrew/formula.rb:253:in `initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `new'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:1016:in `factory'
/opt/homebrew/Library/Homebrew/formula.rb:2139:in `block in all'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `each'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `filter_map'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `all'
/opt/homebrew/Library/Homebrew/cmd/info.rb:201:in `print_json'
/opt/homebrew/Library/Homebrew/cmd/info.rb:98:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:94:in `<main>'
Please report this issue:
https://docs.brew.sh/Troubleshooting |
these formula seem fine (all have url) Could you please give a list of taps?
also
|
try:
This will show something like below:
In this case, I commented out You can find which formula has the problem by this command. |
Ok that's interesting, looks like it has something to do with the ❯ brew tap
ankitpokhrel/jira-cli
hashicorp/tap
homebrew/bundle
homebrew/services
oven-sh/bun
rcmdnk/file
teamookla/speedtest
❯ brew ls -1
==> Formulae
actionlint
aom
aribb24
autoconf
automake
bat
bat-extras
bottom
brew-file
brotli
bun
ca-certificates
cairo
chafa
cjson
cmake
cmake-docs
comby
coreutils
ctags
curl
dav1d
dust
expat
fd
ffmpeg
fish
flac
fontconfig
freetype
frei0r
fribidi
fzf
gdk-pixbuf
gettext
gh
ghostscript
giflib
git
git-gui
glib
gmp
gnutls
gping
graphite2
harfbuzz
highway
hurl
icu4c
imagemagick
imath
jasper
jbig2dec
jira-cli
jless
jpeg-turbo
jpeg-xl
jq
lame
leiningen
leptonica
libapplewm
libarchive
libass
libb2
libbluray
libde265
libev
libevent
libfontenc
libgit2
[email protected]
libheif
libice
libidn
libidn2
liblqr
libmicrohttpd
libnghttp2
libogg
libomp
libpng
libraw
librist
librsvg
libsamplerate
libsm
libsndfile
libsodium
libsoxr
libssh
libssh2
libtasn1
libtiff
libtool
libunibreak
libunistring
libuv
libvidstab
libvmaf
libvorbis
libvpx
libvterm
libx11
libxau
libxcb
libxdmcp
libxext
libxfixes
libxfont2
libxi
libxinerama
libxkbcommon
libxkbfile
libxmu
libxrandr
libxrender
libxt
libxtst
libyaml
little-cms2
llvm
lpeg
lsd
luajit
luv
lz4
lzo
m4
mas
mbedtls
mesa
mise
mpdecimal
mpg123
msgpack
ncurses
neovim
nettle
oniguruma
opencore-amr
openexr
openjdk
openjpeg
openssl@3
opus
p11-kit
pango
pcre
pcre2
pixman
pkg-config
pngpaste
[email protected]
rav1e
readline
reattach-to-user-namespace
ripgrep
rtmpdump
rubberband
rust
sdl2
shared-mime-info
snappy
speedtest
speex
sqlite
srt
starship
stylua
svt-av1
tcl-tk
terraform
tesseract
theora
tmux
tree
tree-sitter
unbound
unibilium
usage
utf8proc
webp
wget
x264
x265
xauth
xcb-util
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xdotool
xkbcomp
xkeyboardconfig
xorg-server
xorgproto
xvid
xxhash
xz
yazi
z3
zeromq
zimg
zoxide
zstd
==> Casks
alex313031-thorium
alt-tab
dbeaver-community
discord
docker
drawio
firefox
font-jetbrains-mono-nerd-font
google-chrome
jellyfin
obs
postgres-unofficial
postman
qbittorrent
raindropio
raspberry-pi-imager
rectangle
roboform
signal
slack
tidal
tor-browser
vitalsource-bookshelf
zoom ❯ brew info --json=v1 --eval-all --debug
# ... abbreviated
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromPathLoader): loading /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/terraform.rb
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromPathLoader): loading /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/tfstacks.rb
/opt/homebrew/Library/Homebrew/brew.rb (Formulary::FromPathLoader): loading /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/vagrant.rb
Error: formulae require at least a URL
/opt/homebrew/Library/Homebrew/formula.rb:319:in `determine_active_spec'
/opt/homebrew/Library/Homebrew/formula.rb:253:in `initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `new'
/opt/homebrew/Library/Homebrew/formulary.rb:571:in `get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:1016:in `factory'
/opt/homebrew/Library/Homebrew/formula.rb:2139:in `block in all'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `each'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `filter_map'
/opt/homebrew/Library/Homebrew/formula.rb:2138:in `all'
/opt/homebrew/Library/Homebrew/cmd/info.rb:201:in `print_json'
/opt/homebrew/Library/Homebrew/cmd/info.rb:98:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:94:in `<main>'
Please report this issue:
https://docs.brew.sh/Troubleshooting What's more interesting is that Looks like there is already an outstanding issue in the Hashicorp tap repository about this. I was able to confirm after uninstalling the ❯ brew init
Do you want to set a repository (y)? ((n) for local Brewfile). [y/n]: n
############################################################
# Initialize /Users/drew/projects/dotfiles/brewfile/Brewfile
############################################################
####################################################################
# You can edit /Users/drew/projects/dotfiles/brewfile/Brewfile with:
# $ brew-file edit
#################################################################### Thanks for all the help - and sorry this was unrelated to your formula! |
I'm getting an error on a fresh install of
homebrew-file
after installing the formula, and updating myzsh
andfish
configs to usebrew-wrap
:My
XDG_CONFIG_HOME
variable is set to~/projects/dotfiles
in my.zshrc
:I have installed the formula:
Attempted running
brew init
- following either they
orn
paths both ultimately yield the same error message whenbrew-wrap
tries generating aBrewfile
:homebrew
-related configuration in.zshrc
:homebrew
-related configuration infish
config:$ uname -a Darwin drews-m1-mbp 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: