hack: Add $GOPATH to hack/update-generated-xxx.sh scripts

So that not everyone has to figure this out.
This commit is contained in:
Stef Walter 2015-07-09 15:26:03 +02:00
parent b33954c45e
commit a38a148e02
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,11 @@ set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env
function generate_version() {
local version=$1
local TMPFILE="/tmp/conversion_generated.$(date +%s).go"

View File

@ -18,6 +18,11 @@ set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env
function result_file_name() {
local version=$1
if [ "${version}" == "api" ]; then