mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
hack: Add $GOPATH to hack/update-generated-xxx.sh scripts
So that not everyone has to figure this out.
This commit is contained in:
parent
b33954c45e
commit
a38a148e02
@ -18,6 +18,11 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||||
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
function generate_version() {
|
function generate_version() {
|
||||||
local version=$1
|
local version=$1
|
||||||
local TMPFILE="/tmp/conversion_generated.$(date +%s).go"
|
local TMPFILE="/tmp/conversion_generated.$(date +%s).go"
|
||||||
|
@ -18,6 +18,11 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||||
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
|
kube::golang::setup_env
|
||||||
|
|
||||||
function result_file_name() {
|
function result_file_name() {
|
||||||
local version=$1
|
local version=$1
|
||||||
if [ "${version}" == "api" ]; then
|
if [ "${version}" == "api" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user