From adfd1b226c3b6b5e1b21fedc3aca2c65b6f0774f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Mon, 23 Jan 2023 11:38:02 -0300 Subject: [PATCH] Set constant of version in compile time --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ff54730..29763e1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ builds: main: ./main.go binary: acl ldflags: - - -s -w + - -s -w -X "github.com/tsuru/acl-api/api/version.Version={{ .Tag }}" env: - CGO_ENABLED=0 goos: