This commit is contained in:
2026-04-03 15:28:01 -04:00
parent e38f00fe69
commit 1aff578a13
2 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,11 @@ if [[ "$STATIC_FLAG" == "no" && "$VULN_CHECK" == "no" ]]; then
fi
toolchain=$(go mod edit go.mod -json | jq ".Toolchain");
version=$(go mod edit -json | jq ".Toolchain");
echo "[DEBUG] $toolchain found in go.mod";
version=$(go env -json | jq ".GOVERSION");
echo "[DEBUG] $version found in go env";
if [[ ! -z "$toolchain" ]]; then
version=$toolchain;
fi