Skip to content
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

ASDF Not Using Global Version #140

Open
austinarbor opened this issue Aug 9, 2024 · 1 comment
Open

ASDF Not Using Global Version #140

austinarbor opened this issue Aug 9, 2024 · 1 comment

Comments

@austinarbor
Copy link

Describe the bug

  • I have set asdf global golang 1.20.14
  • In a new shell
    ~ ❯ which go
    /Users/austinarbor/.asdf/shims/go
    ~ ❯ go version
    go version go1.20.14 darwin/arm64 
    
  • However, for some reason, in one directory it keeps selecting 1.21.12
    • go.mod specifies 1.20
    • .tool-versions does not exist
    • .go-version does not exist
    • ASDF_GOLANG_MOD_VERSION_ENABLED is set to false before initializing asdf
      export ASDF_GOLANG_MOD_VERSION_ENABLED=false
      . /opt/homebrew/opt/asdf/libexec/asdf.sh
      . ~/.asdf/plugins/java/set-java-home.zsh
      . ~/.asdf/plugins/golang/set-env.zsh
      

How is it choosing this version and how can I get it to use my global version?

@bewuethr
Copy link

What does asdf current in that directory show?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants