Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
fix: don't throw errors when there are multiple GOPATHs (#158)
Browse files Browse the repository at this point in the history
This adds support for multiple entries in the GOPATH variable, which has the benefit that downloaded packages are placed in the path of the first entry of GOPATH while own packages can be managed in the second path.
  • Loading branch information
Daniel Trautmann authored and matchai committed Feb 17, 2019
1 parent 71f2d01 commit 653f1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__sf_section_golang.fish
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function __sf_section_golang -d "Display the current go version if you're inside
-o (count *.go) -gt 0 \
-o -f Gopkg.yml \
-o -f Gopkg.lock \
-o ([ -n $GOPATH ]; and string match $GOPATH $PWD)
-o ([ (count $GOPATH) -gt 0 ]; and string match $GOPATH $PWD)
return
end

Expand Down

0 comments on commit 653f1c8

Please sign in to comment.