-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump gdn go-flags twentythousandtonnesofcrudeoil
* Also add build-gdn-linux CI scripts [finishes #126676279] Submodule src/code.cloudfoundry.org/gdn 0000000...33695b7 (new submodule) Submodule src/github.com/jessevdk/go-flags 6b9493b..8bc97d6: > Show how to exit(0) on --help in example > Output --help message to stdout instead of stderr > Merge pull request #197 from kkolman/fix_test_windows > Merge pull request #201 from bengadbois/patch-1 > Merge pull request #200 from Liamraystanley/patch-1 > Add line to doc for 'forceposix' build tag > Merge pull request #193 from XenoPhex/add-force-posix > Add accessor for struct field of the option > Allow passing negative number to a signed number option > Merge pull request #163 from pierrec/master > Run go fmt > Add specification of required rest arg range > Merge pull request #187 from laurent22/patch-1 > Ensure to propagate convert error in parser > Merge pull request #177 from blampe/arg-wrap > Merge pull request #173 from blampe/man > Fix various linting warnings > [travis] Bump go version to 1.6 > [travis] Remove go get for vet > Do not parse commands after seeing a non-option non-command arg > Run go fmt > Do not complete hidden flags > Execute CommandHandler also if there is no command to run > Add Parser.CommandHandler to run before executing a command Submodule src/github.com/vito/twentythousandtonnesofcrudeoil 0000000...3e53686 (new submodule)
- Loading branch information
Showing
8 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
platform: linux | ||
|
||
image_resource: | ||
type: docker-image | ||
source: {repository: concourse/bin-ci} | ||
|
||
inputs: | ||
- name: gr-release-develop | ||
|
||
outputs: | ||
- name: binary | ||
|
||
run: | ||
path: gr-release-develop/ci/scripts/build-gdn-linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/bash | ||
|
||
# This script is almost entirely based on | ||
# https://github.com/concourse/bin/blob/master/ci/build-linux and | ||
# https://github.com/concourse/bin/blob/master/scripts/build-linux | ||
|
||
set -e -u -x | ||
|
||
export GOPATH=$PWD/gopath:$PWD/gr-release-develop | ||
export PATH=$PWD/gopath/bin:$PWD/gr-release-develop:$PATH | ||
|
||
go get github.com/jteeuwen/go-bindata/go-bindata | ||
|
||
LINUX_ASSETS=$PWD/linux | ||
|
||
rm -rf $LINUX_ASSETS | ||
mkdir -p $LINUX_ASSETS | ||
|
||
mkdir -p $LINUX_ASSETS/bin | ||
cp /opt/static-assets/tar $LINUX_ASSETS/bin/tar | ||
|
||
cp -a /opt/static-assets/iptables $LINUX_ASSETS/iptables | ||
|
||
# go-bindata does weird stuff with symlinks. we only care about iptables anyway | ||
rm $LINUX_ASSETS/iptables/sbin/* | ||
rm -r $LINUX_ASSETS/iptables/bin | ||
cp -aL /opt/static-assets/iptables/sbin/iptables $LINUX_ASSETS/iptables/sbin/iptables | ||
|
||
pushd gr-release-develop | ||
# workaround 'mv /root/.tmp/... /tmp/...: invalid cross-device link' | ||
HOME=$PWD bosh sync-blobs | ||
|
||
( | ||
set -e -u -x | ||
|
||
export GOPATH=$PWD | ||
|
||
go install code.cloudfoundry.org/guardian/cmd/dadoo | ||
go install code.cloudfoundry.org/guardian/cmd/init | ||
|
||
pushd src/github.com/opencontainers/runc | ||
PKG_CONFIG_PATH=/opt/static-assets/libseccomp/lib/pkgconfig \ | ||
GOPATH=$PWD/Godeps/_workspace:$GOPATH \ | ||
BUILDTAGS=seccomp \ | ||
make static | ||
|
||
mv runc $LINUX_ASSETS/bin | ||
popd | ||
|
||
pushd src/code.cloudfoundry.org/guardian/rundmc/nstar | ||
make | ||
mv nstar $LINUX_ASSETS/bin | ||
popd | ||
|
||
cp bin/{init,dadoo} $LINUX_ASSETS/bin | ||
) | ||
popd | ||
|
||
go-bindata -nomemcopy -pkg bindata -o gr-release-develop/src/code.cloudfoundry.org/gdn/bindata/bindata.go linux/... | ||
|
||
# must be built with 'daemon' flag because of docker packages :| | ||
go build \ | ||
-tags daemon \ | ||
-o binary/gdn_linux_amd64 \ | ||
code.cloudfoundry.org/gdn/cmd/gdn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
ROOT_DIR_PATH=$(cd $(dirname $0)/.. && pwd) | ||
|
||
gosub list \ | ||
-a code.cloudfoundry.org/gdn/... \ | ||
-a github.com/vito/twentythousandtonnesofcrudeoil/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule go-flags
updated
22 files
+3 −1 | .travis.yml | |
+4 −1 | arg.go | |
+30 −0 | arg_test.go | |
+26 −12 | command.go | |
+38 −0 | command_test.go | |
+1 −1 | completion.go | |
+1 −0 | completion_test.go | |
+3 −3 | example_test.go | |
+5 −1 | examples/main.go | |
+3 −1 | flags.go | |
+4 −4 | group.go | |
+17 −5 | help.go | |
+10 −4 | help_test.go | |
+10 −2 | ini.go | |
+72 −1 | ini_test.go | |
+12 −1 | man.go | |
+22 −0 | marshal_test.go | |
+25 −3 | option.go | |
+1 −1 | optstyle_other.go | |
+2 −0 | optstyle_windows.go | |
+58 −10 | parser.go | |
+117 −5 | parser_test.go |
Submodule twentythousandtonnesofcrudeoil
added at
3e5368