From e3fd1672ac9b8702b314cbde834605cb67f7645e Mon Sep 17 00:00:00 2001 From: Brad Wells Date: Fri, 8 Aug 2014 22:40:05 -0600 Subject: [PATCH] (Re)generate the build version when preparing a release. If hack/build-go.sh has never been run before release/build-release.sh the subsequent build will fail. Also, when preparing builds the version should be forced to be up to date with the current checkout. --- release/build-release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release/build-release.sh b/release/build-release.sh index 1763d1c5801..200cd26bd25 100755 --- a/release/build-release.sh +++ b/release/build-release.sh @@ -27,7 +27,11 @@ INSTANCE_PREFIX=$1 KUBE_DIR=$SCRIPT_DIR/.. -# First build the release tar. This gets copied on to the master and installed +# First ensure the version pkg is complete and is up to date +HACK_DIR=$KUBE_DIR/hack +$HACK_DIR/version-gen.sh + +# Next build the release tar. This gets copied on to the master and installed # from there. It includes the go source for the necessary servers along with # the salt configs. rm -rf $KUBE_DIR/output/release/*