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

Fix version command on dev builds #291

Merged
merged 2 commits into from
Jun 15, 2024
Merged

Fix version command on dev builds #291

merged 2 commits into from
Jun 15, 2024

Conversation

aantn
Copy link
Contributor

@aantn aantn commented Jun 15, 2024

Motivation

Prior to this PR, krr version returned an incorrect hardcoded version number (1.8.2-dev) when run from source.

Background

At present, when krr version is run from a proper release (e.g. installed with brew or downloaded from github) then it returns a correct version number that was patched by the github action for releases. When run from source, krr returns an incorrect number.

We have a GitHub action which is supposed to patch the version upon release in the source code, but it doesn't work and hasn't for some time if ever. (E.g. see a recent failure here.) I don't think that fixing that GitHub action is the correct approach either because it means we will have commits on main that never went through a PR. (E.g. commit generated by the auto-version-bump.)

Therefore I've removed that GitHub action and implemented a proper version command that takes dev releases into account. The implementation is based on similar code I wrote for HolmesGPT.

Testing

I tested the version command on a dev build and verified that it returns correct output.

@aantn aantn requested a review from arikalon1 June 15, 2024 07:35
Copy link
Contributor

@arikalon1 arikalon1 left a comment

Choose a reason for hiding this comment

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

LGTM

@arikalon1 arikalon1 merged commit 9465cd9 into main Jun 15, 2024
2 checks passed
@arikalon1 arikalon1 deleted the fix-version branch June 15, 2024 11:43
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.

2 participants