Melkeydev/go-blueprint

go-blueprint version string is empty on output instead of it printing the version

Closed this issue · 2 comments

when go-blueprint version is written the output is just Go Blueprint CLI version
instead of printing the proper output Go Blueprint CLI version 0.3.0

I would say that this is an error in the .goreleaser.yml file. There, github.com/melkeydev/go-blueprint/cmd.GoBlueprintVersion={{.Version}} should be replaced with cmd.GoBlueprintVersion={{.Version}}.

I believe the problem is that when you install with go install github.com/melkeydev/go-blueprint@latest

It will build from the source code rather than using the pre-built binary, and therefore the version variable won't be populated with the ldflag

Working on a fix for this one