Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Automate version file control and fix goreleaser #304

Merged
merged 5 commits into from
Mar 11, 2025

Conversation

nieomylnieja
Copy link
Contributor

@nieomylnieja nieomylnieja commented Mar 11, 2025

Summary

Turns runtime/debug package allows us to see BuildInfo which among other things has details about the main module's version. The version is set by go install, for prebuilt binaries with go build we're leaving the process intact.
I haven't tested how go install ...@latest will behave, until we release an official new version we won't be able to check that.

I also fixed goreleaser config which was ONCE AGAIN misbehaving due to the recent changes they introduced. It should now not change the release's metadata, so If you mark it as pre-release or official version, it will keep it this way.

@nieomylnieja nieomylnieja linked an issue Mar 11, 2025 that may be closed by this pull request
@nieomylnieja nieomylnieja changed the title chore: Automate version file control chore: Automate version file control and fix goreleaser Mar 11, 2025
@nieomylnieja nieomylnieja marked this pull request as ready for review March 11, 2025 11:22
@piotrkazulak piotrkazulak self-requested a review March 11, 2025 12:52
Copy link
Contributor

@piotrkazulak piotrkazulak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nieomylnieja nieomylnieja merged commit 6aebb06 into main Mar 11, 2025
5 checks passed
@nieomylnieja nieomylnieja deleted the automate-version-file-control branch March 11, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Improve VERSION file management
3 participants