The compute image building script autodetects the correct Go version to
[arvados.git] / tools / compute-images / build.sh
index 769b9a5b5aaca004b6f7624369ab0ffcafc98de2..c589ffa055493c3be94c132a3c3914e6aeccb928 100755 (executable)
@@ -286,6 +286,9 @@ if [[ -n "$NVIDIA_GPU_SUPPORT" ]]; then
   EXTRA2+=" -var nvidia_gpu_support=$NVIDIA_GPU_SUPPORT"
 fi
 
+GOVERSION=$(grep 'const goversion =' ../../lib/install/deps.go |awk -F'"' '{print $2}')
+EXTRA2+=" -var goversion=$GOVERSION"
+
 echo
 packer version
 echo