Skip to content

Commit

Permalink
add GOPATH/bin to PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Alton Fong <[email protected]>
  • Loading branch information
Zachary Gershman authored and altonf4 committed Sep 22, 2017
1 parent bf25b6f commit bfb7d20
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/compile.env.darwin
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ else
fi

export GOPATH=$PWD
export PATH=$GOROOT/bin:$PATH
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
2 changes: 1 addition & 1 deletion src/compile.env.generic
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ else
fi

export GOPATH=$PWD
export PATH=$GOROOT/bin:$PATH
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
2 changes: 1 addition & 1 deletion src/compile.env.linux
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ else
fi

export GOPATH=$PWD
export PATH=$GOROOT/bin:$PATH
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
2 changes: 1 addition & 1 deletion src/compile.env.windows
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ try {
}

$env:GOPATH="${PWD}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:PATH="${env:GOROOT}\bin;${env:GOPATH}\bin;${env:PATH}"
Exit 1
} catch {
Write-Error $_.Exception.Message
Expand Down
4 changes: 2 additions & 2 deletions src/runtime.env.linux
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export GOROOT=$(readlink -nf /var/vcap/packages/golang-1.8-linux)
export GOPATH=$PWD
export PATH=$GOROOT/bin:$PATH
export GOPATH="${PWD}"
export PATH="${GOROOT}/bin:${GOPATH}/bin:${PATH}"
2 changes: 1 addition & 1 deletion src/runtime.env.windows
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try {
$env:GOROOT=(Get-ChildItem -Path C:\var\vcap\packages\golang-*-windows\go).FullName
$env:GOPATH="${PWD}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:PATH="${env:GOROOT}\bin;${env:GOPATH}\bin;${env:PATH}"
} catch {
Write-Error $_.Exception.Message
Exit 1
Expand Down

0 comments on commit bfb7d20

Please sign in to comment.