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

Attempt to determine GOPATH from go env #2

Open
kevinkjt2000 opened this issue Jul 28, 2019 · 0 comments
Open

Attempt to determine GOPATH from go env #2

kevinkjt2000 opened this issue Jul 28, 2019 · 0 comments

Comments

@kevinkjt2000
Copy link

kevinkjt2000 commented Jul 28, 2019

Thanks for the awesome refactoring plugin!

Since I use asdf to manage my go installations and swap versions as I navigate to different directories, it would be nice if GOPATH was determined from go env as a fallback if GOPATH is missing from the environment.

└─▪ go env
...
GOPATH="/home/kevin/.asdf/installs/golang/1.12.7/packages"
...

My workaround at the moment is to rely on direnv by adding this to my ~/.envrc file:

eval "$(go env)"
export GOPATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant