You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About half of my projects don't use a global GOPATH, but use GOPATH=pwd to contain everything in one directory.
go-projectile-set-gopath works OK for that purpose initially, but when switching from a buffer PROJ-ROOT1 (which has a main.go) to another buffer PROJ-ROOT2/main.go go-projectile-derive-gopath seems to fail.
The problem is that "rel" correctly ends up being "main.go", but since a main.go is also to be found in PROJ-ROOT1 (locate-file rel (split-string path path-separator t)) evaluated to "t" which causes GOPATH to be the old PROJ-ROOT1
The text was updated successfully, but these errors were encountered:
Ahh... no ... this is more complex.
You also don't want to derive a GOPATH if the file is in GOROOT. Else you'll switch GOPATH when using tags navigation to move to a definition of a stdlib function.
About half of my projects don't use a global GOPATH, but use GOPATH=
pwd
to contain everything in one directory.go-projectile-set-gopath works OK for that purpose initially, but when switching from a buffer PROJ-ROOT1 (which has a main.go) to another buffer PROJ-ROOT2/main.go go-projectile-derive-gopath seems to fail.
The problem is that "rel" correctly ends up being "main.go", but since a main.go is also to be found in PROJ-ROOT1 (locate-file rel (split-string path path-separator t)) evaluated to "t" which causes GOPATH to be the old PROJ-ROOT1
The text was updated successfully, but these errors were encountered: