Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automation: Install go.mod go with gimme #965

Merged
merged 1 commit into from
Jan 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions automation/check-patch.setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ tmp_dir=/tmp/knmstate/
rm -rf $tmp_dir
mkdir -p $tmp_dir

if gimme --help > /dev/null 2>&1; then
export GIMME_GO_VERSION=$(grep '^go' go.mod |sed 's/go //')
echo "Installing go $GIMME_GO_VERSION with gimme"
eval "$(gimme)"
else
echo "Gimme not installed using existing golang version $(go --version)"
fi

export ARCHS="amd64 arm64"
export TMP_PROJECT_PATH=$tmp_dir/kubernetes-nmstate
export E2E_LOGS=${TMP_PROJECT_PATH}/test_logs/e2e
Expand Down