From 4532da80648444af278ea057ff8c192452861319 Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Sun, 24 Jan 2021 19:09:57 +0200 Subject: [PATCH] Update goreleaser configuration (#379) --- .goreleaser.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ae1ef70..19e6330 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,16 @@ builds: - - binary: ffuf + - id: ffuf + binary: ffuf + flags: + - -trimpath + env: + - CGO_ENABLED=0 + asmflags: + - all=-trimpath={{.Env.GOPATH}} + gcflags: + - all=-trimpath={{.Env.GOPATH}} + ldflags: | + -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -extldflags '-static' goos: - linux - windows