Skip to content

Commit c7bd371

Browse files
committed
Call ensure_paths in .prow.sh
There's a mismatch between the go version installed in the prow job (1.17) and the version wanted to do the build (1.16), because of it there's a new path in run_with_go that will attempt to download 1.16 but fail because an env var is not set. Calling ensure_paths makes sure that the env_var is set, this is a change outside of release-tools.
1 parent 36c5826 commit c7bd371

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.prow.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
# # Only these tests make sense for csi-proxy
66
: ${CSI_PROW_TESTS:="unit"}
77
: ${CSI_PROW_BUILD_PLATFORMS:="windows amd64 .exe"}
8-
8+
99
. release-tools/prow.sh
1010

11-
#main
11+
# This creates the CSI_PROW_WORK directory that is needed by run_with_go.
12+
ensure_paths
13+
14+
# main
1215
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make all "GOFLAGS_VENDOR=${GOFLAGS_VENDOR}" "BUILD_PLATFORMS=${CSI_PROW_BUILD_PLATFORMS}"
1316
run_with_go "${CSI_PROW_GO_VERSION_BUILD}" make -k test "GOFLAGS_VENDOR=${GOFLAGS_VENDOR}" 2>&1 | make_test_to_junit

0 commit comments

Comments
 (0)