Skip to content

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Sep 26, 2025

Tested this script manually, and with this change it's back to working for me.

Commit messages

913621b tools/bump-version: Better centralize version format; handle mismatch

This is NFC except in its handling of errors.

I haven't been using this script since the app launched (and have
instead done its work manually), because it assumes the version
numbers are 0.0.N+N. After this commit, it's a small local change to
make the script handle the new 30.0.N+N version numbers, and the
script will also fail cleanly if we ever change the format again.

d884078 tools/bump-version: Update for current version numbers

In principle it wouldn't be hard to generalize this logic further,
reading out the current major and minor version numbers rather than
expecting them to have certain values.

But it's not obvious what direction we'd want such generalization
to go in -- that depends on what our version-numbering practices
would be after they change. On current plans, the versions will be
30.0.N+N indefinitely, so it's inherently uncertain what pattern we
might choose (and therefore how the version should get bumped by
this script) after we change those plans, if we someday do.
So just leave the generalization to be done if and when we need it.

This is NFC except in its handling of errors.

I haven't been using this script since the app launched (and have
instead done its work manually), because it assumes the version
numbers are 0.0.N+N.  After this commit, it's a small local change to
make the script handle the new 30.0.N+N version numbers, and the
script will also fail cleanly if we ever change the format again.
In principle it wouldn't be hard to generalize this logic further,
reading out the current major and minor version numbers rather than
expecting them to have certain values.

But it's not obvious what direction we'd want such generalization
to go in -- that depends on what our version-numbering practices
would be after they change.  On current plans, the versions will be
30.0.N+N indefinitely, so it's inherently uncertain what pattern we
might choose (and therefore how the version should get bumped by
this script) after we change those plans, if we someday do.
So just leave the generalization to be done if and when we need it.
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant