Skip to content

ProductVersion reporting refactoring - #16

Merged
end2endzone merged 17 commits into
mainfrom
issues-15
Aug 18, 2026
Merged

ProductVersion reporting refactoring#16
end2endzone merged 17 commits into
mainfrom
issues-15

Conversation

@end2endzone

Copy link
Copy Markdown
Owner
  • Refactored product version string, maximising metadata injected at build time.
  • Fixed situation where (devel) was returned. Now falls back to VERSION file.

Fixes #15.

… becomes a root module directory that depends on the library using a relative path. This should allows building using `go install`.
…irectory becomes a root module directory that depends on the library using a relative path. This should allows building using `go install`."

This reverts commit 1988b83.
…RSION if build from source code outside of git. For example, when the source code is downloaded as a zip file.
…ted in build when using `go install` command.
…ctVersionVerboseString()` to build package. Functions were also properly renamed.
…per` directory.

- Created root package to embed the VERSION file content.
- Modified `GetProductVersion()` to fall back to the content of file `/VERSION` if all other version identification method fails.
- Strip the leading "v" to only get the digits and pre-release labels when getting the fall back version from the tag name.
…l)".

- Fixed failing test TestGetProductVersionStringContainsVERSIONFile()
@end2endzone
end2endzone merged commit a658bcd into main Aug 18, 2026
6 checks passed
@end2endzone
end2endzone deleted the issues-15 branch August 18, 2026 16:06
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.

BUG: Crash on --version when installed from go install.

1 participant