Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew installing one, specific Homebrew/homebrew-core formula (not cask or tap) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update and retried your prior step? Yes.brew doctor, fixed all issues and retried your prior step? No.[x] Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
Failed to run, because:
brew gist-logs go
Error: go: version missing for "gotools" resource!
[x] If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?
$ brew config
HOMEBREW_VERSION: 1.3.4
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: ac8b58537fe3dd71098a43afcc6a1785dcde1d39
Last commit: 2 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 51f1df7362765093c3a5cbae09e595c4a9dd4e21
Core tap last commit: 81 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.0 build 900
Git: 2.14.2 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.26.1/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.2/bin/ruby
Java: 1.8.0_11, 1.7.0_67
macOS: 10.13-x86_64
Xcode: 9.0
CLT: 9.0.0.0.1.1504363082
X11: 2.7.7 => /opt/X11
$ 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 and just ignore them. Thanks!
Warning: Your XQuartz (2.7.7) is outdated.
Please install XQuartz 2.7.9 (or delete the current version).
XQuartz can be updated using Homebrew-Cask by running
brew cask reinstall xquartz
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libproxychains4.dylib
/usr/local/lib/libgrpc.dylib
/usr/local/lib/libgrpc++.dylib
/usr/local/lib/libgrpc_unsecure.dylib
/usr/local/lib/libgpr.dylib
/usr/local/lib/libgrpc++_unsecure.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/grpc/grpc.h
/usr/local/include/grpc/status.h
/usr/local/include/grpc/census.h
/usr/local/include/grpc/compression.h
/usr/local/include/grpc/support/time.h
/usr/local/include/grpc/support/port_platform.h
/usr/local/include/grpc/support/tls_gcc.h
/usr/local/include/grpc/support/tls.h
/usr/local/include/grpc/support/sync.h
/usr/local/include/grpc/support/string_util.h
/usr/local/include/grpc/support/tls_msvc.h
/usr/local/include/grpc/support/cmdline.h
/usr/local/include/grpc/support/slice.h
/usr/local/include/grpc/support/sync_win32.h
/usr/local/include/grpc/support/log_win32.h
/usr/local/include/grpc/support/atm_gcc_sync.h
/usr/local/include/grpc/support/tls_pthread.h
/usr/local/include/grpc/support/atm_gcc_atomic.h
/usr/local/include/grpc/support/atm.h
/usr/local/include/grpc/support/sync_generic.h
/usr/local/include/grpc/support/log.h
/usr/local/include/grpc/support/cpu.h
/usr/local/include/grpc/support/sync_posix.h
/usr/local/include/grpc/support/cancellable_platform.h
/usr/local/include/grpc/support/histogram.h
/usr/local/include/grpc/support/thd.h
/usr/local/include/grpc/support/host_port.h
/usr/local/include/grpc/support/atm_win32.h
/usr/local/include/grpc/support/slice_buffer.h
/usr/local/include/grpc/support/useful.h
/usr/local/include/grpc/support/subprocess.h
/usr/local/include/grpc/support/alloc.h
/usr/local/include/grpc/byte_buffer_reader.h
/usr/local/include/grpc/byte_buffer.h
/usr/local/include/grpc/grpc_security.h
/usr/local/include/grpc++/time.h
/usr/local/include/grpc++/impl/rpc_method.h
/usr/local/include/grpc++/impl/sync.h
/usr/local/include/grpc++/impl/grpc_library.h
/usr/local/include/grpc++/impl/client_unary_call.h
/usr/local/include/grpc++/impl/internal_stub.h
/usr/local/include/grpc++/impl/call.h
/usr/local/include/grpc++/impl/thd_no_cxx11.h
/usr/local/include/grpc++/impl/rpc_service_method.h
/usr/local/include/grpc++/impl/sync_no_cxx11.h
/usr/local/include/grpc++/impl/service_type.h
/usr/local/include/grpc++/impl/thd.h
/usr/local/include/grpc++/impl/sync_cxx11.h
/usr/local/include/grpc++/impl/thd_cxx11.h
/usr/local/include/grpc++/server_context.h
/usr/local/include/grpc++/status.h
/usr/local/include/grpc++/server_credentials.h
/usr/local/include/grpc++/status_code_enum.h
/usr/local/include/grpc++/async_unary_call.h
/usr/local/include/grpc++/config.h
/usr/local/include/grpc++/channel_interface.h
/usr/local/include/grpc++/slice.h
/usr/local/include/grpc++/thread_pool_interface.h
/usr/local/include/grpc++/stream.h
/usr/local/include/grpc++/async_generic_service.h
/usr/local/include/grpc++/channel_arguments.h
/usr/local/include/grpc++/generic_stub.h
/usr/local/include/grpc++/credentials.h
/usr/local/include/grpc++/byte_buffer.h
/usr/local/include/grpc++/create_channel.h
/usr/local/include/grpc++/server.h
/usr/local/include/grpc++/server_builder.h
/usr/local/include/grpc++/completion_queue.h
/usr/local/include/grpc++/client_context.h
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libgrpc++_unsecure.a
/usr/local/lib/libgrpc.a
/usr/local/lib/libgrpc_unsecure.a
/usr/local/lib/libgpr.a
/usr/local/lib/libgrpc++.a
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
docker
proxychains-ng
Error: go: version missing for "gotools" resource!
To help us debug your issue please explain:
I am trying to brew upgrade.
The line go: version missing for "gotools" resource! keep showing
$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/cask).
No changes to formulae.
Error: go: version missing for "gotools" resource!
$ brew remove go
Error: go: version missing for "gotools" resource!
brew upgrade and brew remove can work as expect.
brew install commands)Well, as I mentioned above, you can reproduce it by calling brew upgrade and brew remove xxx.
To get formulae added or changed in Homebrew please file a Pull Request
We will close issues requesting formulae changes.
You need to fill out the issue template ;)
Specifically
- [ ] If `brew gist-logs` didn't work: ran `brew config` and `brew doctor` and included their output with your issue?
Sorry about that. Already updated.
I suspect that Go's formula violates this check in brew:
git -C "$(brew --repo)" fetch --tags
brew update --force
$ git -C "$(brew --repo)" fetch --tags
remote: Counting objects: 354, done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 354 (delta 288), reused 314 (delta 253), pack-reused 0
Receiving objects: 100% (354/354), 45.66 KiB | 190.00 KiB/s, done.
Resolving deltas: 100% (288/288), completed with 123 local objects.
From https://github.com/Homebrew/brew
10491e1c30..56458f03fc master -> origin/master
* [new tag] 1.3.5 -> 1.3.5
$ brew update --force
Updated 1 tap (homebrew/core).
==> Updated Formulae
tomcat@7
And then everything fixed!
Thanks so much!!
You're welcome!
Hey @ilovezfs, what commit fixes this (or maybe accommodates the version detection for the go* formulas)? I'm using brew commit 1900f8eea33c54101c6f9dea037044e75280e405 and trying to ./bin/brew tap homebrew/core and receiving these same errors.
[email protected]: version missing for "gotools" resource!
The above doesn't work, what am I missing?
MacBook-Pro-thomcom-2:homebrew-core thomcom$ git -C "$(brew --repo)" fetch --tags
error: Could not read 0edca0d2da0ee93b2bceffd3ec42b16fc9439b1f
error: Could not read beb411fefc60b74d69c6a27bc1a04d7ae41eb9ca
error: Could not read 0edca0d2da0ee93b2bceffd3ec42b16fc9439b1f
error: Could not read beb411fefc60b74d69c6a27bc1a04d7ae41eb9ca
remote: Counting objects: 1835, done.
remote: Compressing objects: 100% (508/508), done.
remote: Total 1835 (delta 1416), reused 1683 (delta 1275), pack-reused 0
Receiving objects: 100% (1835/1835), 242.13 KiB | 0 bytes/s, done.
Resolving deltas: 78% (1105/1416), completed with 259 local objects.
fatal: pack has 311 unresolved deltas
fatal: index-pack failed
Destroying my local /usr/local/Homebrew directory and reinstalling with the ruby command from brew.sh seems to have resolved my issue. I don't know if I broke any of my installed Formulae, but brew update seems to be working well, and vim and fzf both work and nothing else matters much.
@ilovezfs - I'm getting the error after running your suggested remedy:
Error: Fetching /usr/local/Homebrew failed!
paul$ git -C "$(brew --repo)" fetch --tags
error: Could not read 0a0c305111d4d6600164ca1179e09e68cc2cd18e
error: Could not read ae8627e0568e8f784fa1804cc82f8a5f6a867420
remote: Counting objects: 8659, done.
remote: Compressing objects: 100% (2561/2561), done.
remote: Total 8659 (delta 6559), reused 7928 (delta 5870), pack-reused 0
Receiving objects: 100% (8659/8659), 1.17 MiB | 1.43 MiB/s, done.
Resolving deltas: 100% (6559/6559), completed with 664 local objects.
error: Could not read fd3333929b997fbf4588228a5876a8a7a4772af4
fatal: revision walk setup failed
error: https://github.com/Homebrew/brew did not send all necessary objects
And ...
paul$ brew update --force
error: Could not read 0a0c305111d4d6600164ca1179e09e68cc2cd18e
error: Could not read ae8627e0568e8f784fa1804cc82f8a5f6a867420
error: Could not read fd3333929b997fbf4588228a5876a8a7a4772af4
fatal: revision walk setup failed
error: https://github.com/Homebrew/brew did not send all necessary objects
Error: Fetching /usr/local/Homebrew failed!
And ...
$ 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 and just ignore them. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
android-platform-tools
ruby
xar
Error: go: version missing for "gotools" resource!
@paul-hammant something is wrong with your git repository. Are you able to
git clone https://github.com/Homebrew/brew.git
Most helpful comment