Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Fix the GOPATH workspace discovery logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban committed Nov 18, 2015
1 parent 71f90ff commit b1e2a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function getBinPath(binname) {
var binpath: string;
for(var i = 0; i < workspaces.length; i++) {
binpath = path.join(workspaces[i], "bin", binname);
if(fs.existsSync(workspaces[i])) {
if(fs.existsSync(binpath)) {
return binpath;
}
}
Expand Down

0 comments on commit b1e2a93

Please sign in to comment.