restructuring logic and adding more inputs #2
@@ -8,8 +8,6 @@ if [[ ! -n "$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,10 +8,7 @@ if [[ "$STATIC_FLAG" == "no" && "$VULN_CHECK" == "no" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
toolchain=$(go mod edit -json go.mod | jq -r ".Toolchain // empty");
|
toolchain=$(go mod edit -json go.mod | jq -r ".Toolchain // empty");
|
||||||
echo "[DEBUG] $toolchain found in go.mod";
|
|
||||||
|
|
||||||
version=$(go env -json | jq -r ".GOVERSION // empty");
|
version=$(go env -json | jq -r ".GOVERSION // empty");
|
||||||
echo "[DEBUG] $version found in go env";
|
|
||||||
|
|
||||||
if [[ -n "$toolchain" ]]; then
|
if [[ -n "$toolchain" ]]; then
|
||||||
echo "[DEBUG] overwriting version with toolchain";
|
echo "[DEBUG] overwriting version with toolchain";
|
||||||
|
|||||||
Reference in New Issue
Block a user