Open scarf005 opened 1 week ago
It seems, when you ran the go
command in your "Actual Behaviour" section, you were in a directory under /run/media/home/scarf
as your error shows add one of the following versions in your config file at /run/media/home/scarf/.tool-versions
. Emphasis on the directory.
The version suggested to be installed also matches what your asdf current
output shows.
It is hard to tell as your reproduction does not include your current working directory where all these commands were executed.
So I would guess, the directory you were in was resolving to the /run/media/home/scarf/.tool-verisons
file, which had golang 1.21.6
in it, but that version was not installed.
It will not "fallback" to the "global" version if there is a specific version defined in a closer .tool-version
file for your current working directory.
Eg:
+ /run/media/home
+-- .tool-verions << has golang 1.23.1
+-- /scarf
+-- .tool-verisons << has golang 1.21.6
+-- /some
+-- /other
+-- /dir << current working directory
asdf just walks up to the root directory from the current working directory, with definitions closer to the current working directory taking precedence.
So it would use 1.21.6
as it is the closest version definition for golang
.
Are you able to re-test with this information, or try a reproduction where you show any directories and cd
s? Thanks
Describe the Bug
I'm unable to make golang plugin to work despite installing it and reshimming. similar to #914, but
reshim
doesn't work at all.Steps to Reproduce
Expected Behaviour
~/.tool-versions
(go 1.23.6) is respected.Actual Behaviour
it attempts to read golang
1.21.6
despite global configured to load1.23.6
.Environment
asdf plugins affected (if relevant)
golang