Closed mewmew closed 7 years ago
Ah yes, I totally forgot you could even have multiple GOPATHs without switching. This is definitely something Goggles should support.
PS thanks for the detailed issue, awesome!
@KyleBanks Thanks for the very quick response time!
I tried it out, and it seems to be partially working. Now I can search my list of packages, but eventually, something seems to be searching in only one of the GOPATH:s and goggles exists with the following error:
u@x220 ~> goggles
2017/03/24 13:20:42 $GOPATH=[/home/u/goget /home/u/Desktop/go], srcdir=[/home/u/goget/src /home/u/Desktop/go/src]
2017/03/24 13:21:20 open /home/u/goget/src/github.com/decomp/decomp/cmd/ll2dot: no such file or directory
Note. github.com/decomp/decomp/cmd/ll2dot is indeed present in my GOPATH, however not in /home/u/goget, but rather in /home/u/Desktop/go.
@mewmew sorry about that, realized I missed one thing on my TODO list right after posting. The last missing piece is in 1600139b4cc2f28d58175edb0d242b66926b9199 and v0.3.2
I'll try to see if the issue is resolved in rev 1600139.
Now it's working! Thanks for the brilliant response time.
Awesome!
I tried to use goggles today, and it does look great. However, upon doing so, it seems it encountered an error when trying to parse my $GOPATH, which is a list of GOPATH:s.
When GOPATH is set to a list, goggles fails with the following error:
Here are a couple of references that may be helpful for dealing with multiple $GOPATH:s.
https://golang.org/pkg/path/filepath/#SplitList https://golang.org/pkg/go/build/#Context.SrcDirs
From mewkiz/pkg/goutil.SrcDir: