gron icon indicating copy to clipboard operation
gron copied to clipboard

Add ldflags to 'go build' cmd to bring back version number

Open dotcs opened this issue 3 years ago • 1 comments

In v0.7.1 the -ldflags "-X main.gronVersion=${VERSION}" argument to the go build cmd has been removed.

This PR reverts this change and re-introduces the flag to show the correct version string in the binary.

https://github.com/tomnomnom/gron/blob/13561bd6339bff18ba571e62313b3f5a6db00111/main.go#L47-L49

Closes #97

dotcs avatar May 06 '22 18:05 dotcs

@tomnomnom wanted to bring this one to your attention, if you missed it—it closes the bothersome (to me) #97 and should be pretty straightforward!

rperce avatar Jun 29 '22 16:06 rperce