- Update Makefile to inject VERSION and GIT_COMMIT at build time - Change Version from const to var to allow ldflags injection - Add build target to create binary with proper version info
8 lines
221 B
Go
8 lines
221 B
Go
package smartconfig
|
|
|
|
// Version is the current version of smartconfig (set at build time with -ldflags)
|
|
var Version = "dev"
|
|
|
|
// GitCommit is the git commit hash (set at build time with -ldflags)
|
|
var GitCommit = "unknown"
|