Updated the version output to use Go module build information if avalable. Enabled GoReleaser module proxying for verifiable builds.

Co-authored-by: Jamie Edge <JamieEdge@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Andrey Nering
2021-04-23 17:35:15 -03:00
co-authored by Jamie Edge Carlos Alexandro Becker
parent 0ae1681d9c
commit 53b2cebb66
3 changed files with 32 additions and 3 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
build:
binary: task
main: cmd/task/task.go
main: cmd/task
goos:
- windows
- darwin
@@ -17,6 +17,11 @@ build:
goarch: 386
env:
- CGO_ENABLED=0
ldflags:
- -s -w # Don't set main.version.
gomod:
proxy: true
archives:
- name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}"