Skip to content

Derive version from git tags + add ucode --version - #219

Merged
AarushiShah-db merged 2 commits into
mainfrom
aarushi/git-derived-versioning
Aug 6, 2026
Merged

Derive version from git tags + add ucode --version#219
AarushiShah-db merged 2 commits into
mainfrom
aarushi/git-derived-versioning

Conversation

@AarushiShah-db

@AarushiShah-db AarushiShah-db commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Replaces the static 0.1.0 in pyproject.toml — which never updated, so telemetry reported the same version forever — with a git-derived version via uv-dynamic-versioning.

On a tag the version is the plain tag (e.g. 0.1.0); between tags it carries the commit distance and short hash (e.g. 0.1.0+14.g93986a8), so a reported version maps back to an exact commit for bug reports.

Also adds ucode --version / -V, wired through the existing telemetry.ucode_version() so the CLI and the outbound User-Agent report the same string.

After merge: cut the base version once with git tag v0.1.0 && git push origin v0.1.0. Until the first v* tag exists, the base is 0.0.0.

@AarushiShah-db
AarushiShah-db requested review from rohita5l and tt-le July 30, 2026 22:54
tt-le
tt-le previously approved these changes Aug 4, 2026
Replaces the static `0.1.0` in pyproject.toml (which never updated, so
telemetry reported the same version forever) with a git-derived version via
uv-dynamic-versioning. On a tag the version is the plain tag (e.g. `0.1.0`);
between tags it carries the commit distance and short hash (e.g.
`0.1.0+14.g93986a8`) so a reported version maps back to an exact commit.

Adds `ucode --version` / `-V`, wired through the existing
telemetry.ucode_version() so the CLI and the outbound User-Agent report the
same string.

Cut a release by tagging: `git tag v0.1.0 && git push origin v0.1.0`. Until the
first `v*` tag exists the base is `0.0.0`.

Co-authored-by: Isaac
@AarushiShah-db
AarushiShah-db merged commit e4e2c5a into main Aug 6, 2026
2 checks passed
@AarushiShah-db
AarushiShah-db deleted the aarushi/git-derived-versioning branch August 6, 2026 21:23
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