asdf
asdf copied to clipboard
bug: asdf does not pick right version of library, confusing behavior
Describe the Bug
asdf does not pick the right version of the library listed in .tool-versions
Steps to Reproduce
protoc version 3.17.3 is specified
cat .tool-versions | grep protoc
protoc 3.17.3
except it's wrong (3.19)
protoc --version
libprotoc 3.19.4
except it's from asdf
which protoc
/Users/andrew.ray/.asdf/shims/protoc
except that the shim contents:
cat /Users/andrew.ray/.asdf/shims/protoc
exec /usr/local/Cellar/asdf/0.10.0/libexec/bin/asdf exec "protoc" "$@"
work fine:
/usr/local/Cellar/asdf/0.10.0/libexec/bin/asdf exec "protoc" --version
libprotoc 3.17.3
Trying to force a reshim doesn't work:
rm -r ~/.asdf/shims/protoc
asdf reshim
protoc --version
libprotoc 3.19.4
asdf install
protoc 3.17.3 is already installed
Expected Behaviour
asdf to do the right thing with version
Actual Behaviour
I do not understand what's going on with the current behavior
Environment
asdf info
OS:
Darwin andrew.ray-pro 20.6.0 Darwin Kernel Version 20.6.0: Tue Feb 22 21:10:41 PST 2022; root:xnu-7195.141.26~1/RELEASE_X86_64 x86_64
SHELL:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.
ASDF VERSION:
v0.10.0
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/usr/local/Cellar/asdf/0.10.0/libexec
ASDF INSTALLED PLUGINS:
bazel [email protected]:rajatvig/asdf-bazel.git master 1646dfd
golang [email protected]:kennyp/asdf-golang.git master cc8bc47
golangci-lint [email protected]:hypnoglow/asdf-golangci-lint.git master 5b537fa
nodejs [email protected]:asdf-vm/asdf-nodejs.git master b2d06a7
protoc [email protected]:paxosglobal/asdf-protoc.git master ad80297
python [email protected]:danhper/asdf-python.git master 57a4d72
ruby [email protected]:asdf-vm/asdf-ruby.git master d0e5a20
terraform [email protected]:Banno/asdf-hashicorp.git master 307f78c
vault [email protected]:Banno/asdf-hashicorp.git master d91aced
asdf plugins affected (if relevant)
No response
Strange, I'm not sure what the cause of this issue is. What is the output of type -a protoc?
Do you have any other versions of protoc installed on your system? What is the output of asdf list protoc?