-
Notifications
You must be signed in to change notification settings - Fork 646
go binary in $GOROOT should be prioritized #1760
Comments
Also, |
Thanks for reporting @FiloSottile Is it a common scenario to have different go binaries in $PATH vs the goroot? |
Myself I use it to develop on the standard library, and I would expect most people doing that to have different binaries in PATH. I think it's closely correlated to setting GOROOT explicitly, as that often implies using a separate toolchain. The priority I would expect it alternateTools > GOROOT > PATH. |
How about other Go tools like alternateTools > GOPATH > PATH > GOROOT |
No real reason for anything else than |
I have pushed the fix to master. Can you give it a try by following the below steps and share any feedback you have.
|
Thank you! ✨ |
Cc creative commons |
The fix for this issue is now out in the latest update (0.6.85) to the Go extension. |
Since e882fb2, the
go
binary in$PATH
is prioritized even ifgo.goroot
is explicitly set. It can be overridden withgo.alternateTools
, but it is pretty unexpected.The text was updated successfully, but these errors were encountered: