deb-sig / double-entry-generator

Rule-based double-entry bookkeeping importer (from Alipay/WeChat/Huobi etc. to Beancount/Ledger).
https://github.com/deb-sig/double-entry-generator
Apache License 2.0
537 stars 79 forks source link

[feat] Support version command when releasing or go get #45

Closed gaocegege closed 2 years ago

gaocegege commented 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

Triple-Z commented 2 years ago

It seems that the version info only exists when using the 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.

Triple-Z commented 2 years ago
image

It works!