Skip to content

build: inject version via ldflags instead of committed VERSION file#363

Open
LorenzBischof wants to merge 1 commit into
fybrik:mainfrom
LorenzBischof:drop-version-file
Open

build: inject version via ldflags instead of committed VERSION file#363
LorenzBischof wants to merge 1 commit into
fybrik:mainfrom
LorenzBischof:drop-version-file

Conversation

@LorenzBischof

Copy link
Copy Markdown

Replaces the //go:embed VERSION mechanism with a main.version variable populated at build time via -ldflags. GoReleaser injects the git tag, so the binary still reports the right version and the VERSION file no longer needs to be committed and kept in sync. Also drops the VERSION-file write/commit step from the tag workflow (it now just creates the tag).

Fixes #359

Signed-off-by: LorenzBischof <1837725+LorenzBischof@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version file not updated for v0.6.3 and v0.6.4 releases

1 participant