aports/testing/nuclei/10-set-GOFLAGS.patch
2025-12-18 21:16:41 +00:00

21 lines
587 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@
CGO_ENABLED=0 $(GOBUILD) -trimpath $(GOFLAGS) -ldflags '${LDFLAGS}' $(GOBUILD_ADDITIONAL_ARGS) \
-o '${GOBUILD_OUTPUT}' $(GOBUILD_PACKAGES)
-build: GOFLAGS = -v -pgo=auto
+build: GOFLAGS += -v -pgo=auto
build: GOBUILD_OUTPUT = ./bin/nuclei
build: GOBUILD_PACKAGES = cmd/nuclei/main.go
build: go-build
@@ -75,7 +75,7 @@
syntax-docs:
./bin/docgen SYNTAX-REFERENCE.md nuclei-jsonschema.json
-test: GOFLAGS = -race -v -timeout 30m -count 1
+test: GOFLAGS += -race -v -timeout 30m -count 1
test:
$(GOTEST) $(GOFLAGS) ./...