Skip to content

Commit a2cd9de

Browse files
Update Makefile
1 parent 700cc07 commit a2cd9de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ ifeq ($(SKIP_VULN),1)
4848
@echo "==> skipping govulncheck (SKIP_VULN=1)"
4949
else
5050
@echo "==> vulnerability scan (govulncheck)"
51-
@$(GOTOOLCHAIN_ENV) $(GO) run golang.org/x/vuln/cmd/govulncheck@latest -os=linux -arch=amd64 $(PKGS) || \
51+
@GOOS=$(or $(GOOS),linux) GOARCH=$(or $(GOARCH),amd64) \
52+
$(GOTOOLCHAIN_ENV) $(GO) run golang.org/x/vuln/cmd/govulncheck@latest ./... || \
5253
( echo "ERROR: govulncheck failed (likely network). Re-run with SKIP_VULN=1 to skip locally."; exit 1 )
5354
endif
5455

56+
5557
# -------- Build --------
5658
.PHONY: build
5759
build:

0 commit comments

Comments
 (0)