bugfixes
This commit is contained in:
@@ -8,6 +8,8 @@ if [[ -z "$version" ]]; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "[DEBUG] $version found in install.sh";
|
||||||
|
|
||||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ if [[ "$STATIC_FLAG" == "no" && "$VULN_CHECK" == "no" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
toolchain=$(go mod edit go.mod -json | jq ".Toolchain");
|
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
|
if [[ ! -z "$toolchain" ]]; then
|
||||||
version=$toolchain;
|
version=$toolchain;
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user