kubernetes/hack/lib
Kubernetes Submit Queue 1cc23155f7 Merge pull request #30546 from thockin/build-vol-whole-output
Automatic merge from submit-queue

Fix subtle build breakage

Repro case:
$ make clean generated_files
$ hack/update-generated-protobuf.sh

This would complain about not finding `fmt`, and it was indicating the wrong
GOROOT.  The problem was that the first step built binaries for generating
code, which *embeds* the value of GOROOT into the binary.  The whole tree was
bind-mounted into the build container and then JUST the dockerized dir was
mounted over it.  The in-container build tried to use the existing binaries,
but GOROOT is wrong.

This change whites-out the whole _output dir.

I first made just an anonymous volume for _output, but docker makes that as
root, which means I can't write to it from our non-root build.  So I just put
it in the data container.  This seems to work.  The biggest change this makes
is that the $GOPATH/bin/ and $GOPATH/pkg/ dirs will persist across dockerized
builds.

NB: this requires a `make clean` to activate.

@lavalamp @jbeda @quinton-hoole @david-mcmahon
2016-08-15 11:42:09 -07:00
..
etcd.sh Update core etcd references to use 3.0.4 2016-08-12 13:39:07 -05:00
golang.sh Set GOROOT 2016-08-12 21:35:32 -07:00
init.sh Link _output/bin/ to real binaries for this arch 2016-07-12 21:52:00 -07:00
test.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.sh Revert "[Federation] Downsize the release binary distribution." 2016-08-01 23:54:09 -07:00
version.sh Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00