-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This didn't work at all on my system. Turned out the problem was that on my system (Linux) some paths didn't have a trailing slash, so `workspace` would be `/home/martin/gosrc`. This makes sure that it always works, no matter if a trailing slash is present or not. Also `break` from the loop on the first match, so it selects the *first* package found in GOPATH rather than the *last*. This is also how imports in Go behave.
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters