restructuring logic and adding more inputs #2

Merged
jake merged 12 commits from cleanup into main 2026-04-03 20:09:13 +00:00
Showing only changes of commit d54c42045a - Show all commits

View File

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