Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,6 @@
[submodule "src/golang.org/x/text"]
path = src/golang.org/x/text
url = https://go.googlesource.com/text
[submodule "src/golang.org/x/sys"]
path = src/golang.org/x/sys
url = https://go.googlesource.com/sys
7 changes: 6 additions & 1 deletion packages/buildpack_app_lifecycle/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ export PATH=$GOROOT/bin:$PATH
CGO_ENABLED=0 go build -a -installsuffix static code.cloudfoundry.org/buildpackapplifecycle/builder
CGO_ENABLED=0 go build -a -installsuffix static code.cloudfoundry.org/buildpackapplifecycle/launcher

GOOS=windows CGO_ENABLED=0 go build -a -installsuffix static code.cloudfoundry.org/buildpackapplifecycle/builder
GOOS=windows CGO_ENABLED=0 go build -a -installsuffix static code.cloudfoundry.org/buildpackapplifecycle/launcher

for binary in builder launcher; do
ldd $binary && echo "$binary must be statically linked" && false
done

tar -xzf /var/vcap/packages/diego-sshd/diego-sshd.tgz
tar -xzf /var/vcap/packages/diego-sshd/diego-sshd-windows.tgz
cp /var/vcap/packages/healthcheck/healthcheck .
cp /var/vcap/packages/healthcheck/healthcheck.exe .

tar -czf ${BOSH_INSTALL_TARGET}/buildpack_app_lifecycle.tgz builder launcher healthcheck diego-sshd
tar -czf ${BOSH_INSTALL_TARGET}/buildpack_app_lifecycle.tgz builder launcher healthcheck diego-sshd builder.exe launcher.exe healthcheck.exe diego-sshd.exe

# clean up source artifacts
rm -rf ${BOSH_INSTALL_TARGET}/src ${BOSH_INSTALL_TARGET}/pkg
1 change: 1 addition & 0 deletions packages/buildpack_app_lifecycle/spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ files:
- code.cloudfoundry.org/lager/*.go # gosub
- code.cloudfoundry.org/systemcerts/*.go # gosub
- github.com/cloudfoundry-incubator/candiedyaml/*.go # gosub
- golang.org/x/sys/windows/**/* #gosub
1 change: 1 addition & 0 deletions src/golang.org/x/sys
Submodule sys added at 90796e