Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
19 lines
602 B
Diff
19 lines
602 B
Diff
diff --git a/Makefile b/Makefile
|
|
index c92df71..724911a 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -10,11 +10,12 @@ DATE ?= $(shell date -u -d @${SOURCE_DATE_EPOCH} +"%Y-%m-%dT%H:%M:%SZ")
|
|
VERSION ?= 0.10.0
|
|
|
|
test: ## Run all tests
|
|
- @go clean --testcache && go test -v ./...
|
|
+ @go clean --testcache && go test -ldflags -extldflags=-Wl,-z,lazy -v ./...
|
|
|
|
build: ## Builds the CLI
|
|
@go build ${GO_FLAGS} \
|
|
-ldflags "-w -s \
|
|
+ -extldflags=-Wl,-z,lazy \
|
|
-X ${NAME}/cmd/global.Version=${VERSION} \
|
|
-X ${PACKAGE}/cmd/global.Version=${VERSION} \
|
|
-X ${NAME}/cmd/global.Commit=${GIT_REV} \
|