Skip to content

Commit

Permalink
Adapt CPI packaging script to updated 'compile.env' convention as of …
Browse files Browse the repository at this point in the history
…Golang release v0.117.0
  • Loading branch information
bgandon committed Feb 13, 2024
1 parent aa2c5c8 commit 26ffcfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/virtualbox_cpi/packaging
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
set -e -x

current_os=$(uname -s | tr '[:upper:]' '[:lower:]')
if [ -z "$BOSH_PACKAGES_DIR" ]; then
pkg_dir=$(readlink -nf /var/vcap/packages/golang-1-darwin)
pkg_dir=$(readlink -nf /var/vcap/packages/golang-1-${current_os})
else
pkg_dir=$BOSH_PACKAGES_DIR/golang-1-darwin
pkg_dir=$BOSH_PACKAGES_DIR/golang-1-${current_os}
fi

source ${pkg_dir}/bosh/compile.env.generic
source ${pkg_dir}/bosh/compile.env

# Since HOME is not set we must set GOPATH and GOCACHE
mkdir -p /tmp/go/.cache
export GOPATH=/tmp/go
export GOCACHE=${GOPATH}/.cache


cd ${BOSH_COMPILE_TARGET}/bosh-virtualbox-cpi
mkdir -p ${BOSH_INSTALL_TARGET}/bin

Expand Down

0 comments on commit 26ffcfa

Please sign in to comment.