fixing improper version passed from input
All checks were successful
tests / test-gomod (push) Successful in 25s
tests / test-versioninput (push) Successful in 30s

This commit is contained in:
2026-05-27 14:31:23 -04:00
parent b25fd78dd5
commit b4cb46f3a6

View File

@@ -44,18 +44,16 @@ if [[ -z $GO_INSTALL_VERSION ]]; then
fixVersion
fi
else
DL_VERSION_RAW=$GO_INSTALL_VERSION
DL_VERSION=$GO_INSTALL_VERSION
fi
echo "Found go version: ${DL_VERSION_RAW}"
echo "Found go version: ${DL_VERSION}"
DL_ARCH=$GO_INSTALL_ARCH
# DL_VSPL=( $DL_VERSION_RAW )
# DL_VERSION="${DL_VSPL[1]}"
# #ensure we have patch-level version, if not add 0 for stable releases
# # -P uses perl syntax
#ensure we have patch-level version, if not add 0 for stable releases
# -P uses perl syntax
# DL_VERSION_PAD_CHECK="$(grep "^go [0-9]+.[0-9]+.[0-9]+" go.mod -P)"
# if [[ -z "$DL_VERSION_PAD_CHECK" ]]; then
# DL_VERSION="$DL_VERSION"".0"