Skip to content

Commit

Permalink
Add "$HOME" for go compiling
Browse files Browse the repository at this point in the history
Signed-off-by: Caitlyn Yu <[email protected]>
  • Loading branch information
Caitlyn Yu committed Oct 9, 2019
1 parent 4d3751d commit 1f79662
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/loggregator_agent/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ cp -a . ${BOSH_INSTALL_TARGET}/src
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/loggregator-agent code.cloudfoundry.org/loggregator-agent/cmd/agent

Expand Down
1 change: 1 addition & 0 deletions packages/loggregator_agent_windows/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $BOSH_INSTALL_TARGET = Resolve-Path "${env:BOSH_INSTALL_TARGET}"
$env:GOROOT="C:\var\vcap\packages\golang1.13.1-windows\go"
$env:GOPATH="${BOSH_INSTALL_TARGET}"
$env:PATH="${env:GOROOT}\bin;${env:PATH}"
$env:HOME="C:\var\vcap"
$pkg_name="loggregator-agent"
$pkg_path="code.cloudfoundry.org/loggregator-agent/cmd/agent"

Expand Down
1 change: 1 addition & 0 deletions packages/prom_scraper/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ cp -a . ${BOSH_INSTALL_TARGET}/src
export GOROOT=$(readlink -nf /var/vcap/packages/golang1.13.1)
export GOPATH=$BOSH_INSTALL_TARGET
export PATH=$GOROOT/bin:$PATH
export HOME=/var/vcap

go build -o ${BOSH_INSTALL_TARGET}/prom-scraper code.cloudfoundry.org/loggregator-agent/cmd/prom-scraper

Expand Down

0 comments on commit 1f79662

Please sign in to comment.