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

How to setup gopath manually inside .vimrc #3660

Closed
coderj001 opened this issue Apr 20, 2024 · 2 comments
Closed

How to setup gopath manually inside .vimrc #3660

coderj001 opened this issue Apr 20, 2024 · 2 comments

Comments

@coderj001
Copy link

coderj001 commented Apr 20, 2024

gopath and goroot as i'm using goenv I have trouble running properly in vim

@bhcleek
Copy link
Collaborator

bhcleek commented Apr 30, 2024

goenv is generally not needed in the Go community because of the go1 compatibility guarantee. What problem are you trying to solve with it?

Vim-go expects go to be in PATH and looks for it there.

You can set up GOPATH manually in your vimrc with a simple let statement if you really need to (e.g. let $GOPATH="/my/go/path", but again, that's unlikely to be necessary. Many (most?) projects have moved on from GOPATH oriented to being Go modules; modules do not require GOPATH.

@coderj001
Copy link
Author

Thanks man. You can close this issue.

@bhcleek bhcleek closed this as completed May 1, 2024
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

2 participants