Closed gaocegege closed 2 years ago
Now there is no version here
2022/01/05 14:26:33 double-entry-generator Version: UNKNOWN, Commit: UNKNOWN, Build Path: UNKNOWN
It seems that the version info only exists when using the make build:
make build
https://github.com/deb-sig/double-entry-generator/blob/25538b692ec954edeeca8202054b1003c2c0909f/Makefile#L33-L35
However, the goreleaser uses go build command to build the binaries, so the released binaries don't have the version info.
goreleaser
go build
It works!
Now there is no version here
2022/01/05 14:26:33 double-entry-generator Version: UNKNOWN, Commit: UNKNOWN, Build Path: UNKNOWN