add version from git tag
This commit is contained in:
parent
5cbf194ee4
commit
709195848a
2
Makefile
2
Makefile
|
|
@ -22,7 +22,7 @@ test:
|
|||
.PHONY: test
|
||||
|
||||
cross:
|
||||
gox -os '!freebsd !netbsd' -arch '!arm' -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" ${TARGETS}
|
||||
gox -os '!freebsd !netbsd' -arch '!arm' -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags '-X main.Version=${TAG}' ${TARGETS}
|
||||
.PHONY: cross
|
||||
|
||||
pristine: generate fmt
|
||||
|
|
|
|||
Loading…
Reference in New Issue