Skip to content

Commit

Permalink
Update packaging to accomodate the autobumping of golang packages (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPaquette committed Sep 29, 2023
1 parent 9349250 commit 79fc902
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/auctioneer/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

mkdir ${BOSH_INSTALL_TARGET}/bin
export GOBIN=${BOSH_INSTALL_TARGET}/bin
Expand Down
2 changes: 1 addition & 1 deletion packages/bbs/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

mkdir ${BOSH_INSTALL_TARGET}/bin
export GOBIN=${BOSH_INSTALL_TARGET}/bin
Expand Down
2 changes: 1 addition & 1 deletion packages/buildpack_app_lifecycle/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mv ${BOSH_INSTALL_TARGET}/src .
DEST="$PWD/bin"
mkdir -p ${DEST}

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org

Expand Down
2 changes: 1 addition & 1 deletion packages/certsplitter/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

mkdir ${BOSH_INSTALL_TARGET}/bin
export GOBIN=${BOSH_INSTALL_TARGET}/bin
Expand Down
2 changes: 1 addition & 1 deletion packages/cfdot/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

mkdir ${BOSH_INSTALL_TARGET}/bin
export GOBIN=${BOSH_INSTALL_TARGET}/bin
Expand Down
2 changes: 1 addition & 1 deletion packages/diego-sshd/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org
CGO_ENABLED=0 go build -o ${BOSH_INSTALL_TARGET}/diego-sshd -a -installsuffix static code.cloudfoundry.org/diego-ssh/cmd/sshd
Expand Down
2 changes: 1 addition & 1 deletion packages/docker_app_lifecycle/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mv ${BOSH_INSTALL_TARGET}/src .
DEST="$PWD/bin"
mkdir -p ${DEST}

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org
CGO_ENABLED=0 go build -o ${DEST}/builder -a -installsuffix static code.cloudfoundry.org/dockerapplifecycle/builder
Expand Down
2 changes: 1 addition & 1 deletion packages/file_server/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env
export GOBIN=${BOSH_INSTALL_TARGET}/bin

pushd src/code.cloudfoundry.org
Expand Down
2 changes: 1 addition & 1 deletion packages/healthcheck/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org
CGO_ENABLED=0 go build -o ${BOSH_INSTALL_TARGET}/healthcheck -a -installsuffix static code.cloudfoundry.org/healthcheck/cmd/healthcheck
Expand Down
2 changes: 1 addition & 1 deletion packages/locket/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env
export GOBIN=${BOSH_INSTALL_TARGET}/bin

pushd src/code.cloudfoundry.org
Expand Down
2 changes: 1 addition & 1 deletion packages/rep/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env
export GOBIN=${BOSH_INSTALL_TARGET}/bin

pushd src/code.cloudfoundry.org
Expand Down
2 changes: 1 addition & 1 deletion packages/route_emitter/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env
export GOBIN=${BOSH_INSTALL_TARGET}/bin

pushd src/code.cloudfoundry.org
Expand Down
2 changes: 1 addition & 1 deletion packages/ssh_proxy/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env
export GOBIN=${BOSH_INSTALL_TARGET}/bin

pushd src/code.cloudfoundry.org
Expand Down
2 changes: 1 addition & 1 deletion packages/vizzini/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mkdir -p ${BOSH_INSTALL_TARGET}/src
cp -a . ${BOSH_INSTALL_TARGET}/src

pushd "${BOSH_INSTALL_TARGET}"
source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org
go install github.com/onsi/ginkgo/v2/ginkgo
Expand Down
2 changes: 1 addition & 1 deletion packages/windows_app_lifecycle/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mv ${BOSH_INSTALL_TARGET}/src .
DEST="$PWD/bin"
mkdir -p ${DEST}

source /var/vcap/packages/golang-1-linux/bosh/compile.env
source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org
GOOS=windows CGO_ENABLED=0 go build -o ${DEST}/builder.exe -tags=windows2012R2 -a -installsuffix static code.cloudfoundry.org/buildpackapplifecycle/builder
Expand Down

0 comments on commit 79fc902

Please sign in to comment.