Skip to content

Pin version statically instead of deriving from git tags - #327

Closed
AarushiShah-db wants to merge 1 commit into
mainfrom
pin-static-version
Closed

Pin version statically instead of deriving from git tags#327
AarushiShah-db wants to merge 1 commit into
mainfrom
pin-static-version

Conversation

@AarushiShah-db

Copy link
Copy Markdown
Collaborator

uv builds git installs from a checkout without tags, so uv-dynamic-versioning always fell back to 0.0.0 for uv tool install git+<url>. Committing the version makes that path report the real number. Bump it by hand when cutting a release.

Co-authored-by: Isaac

`uv tool install git+<url>` builds from a checkout uv strips tags out of, so the
version base fell back to 0.0.0 (`0.0.0+193.g<hash>`). Add a `release-base`
fallback in the uv-dynamic-versioning format so git installs report the intended
release as the base (`0.1.0+193.g<hash>`) while keeping the per-commit suffix.
Tag-visible builds (local/CI) still derive the base from the git tag as before.

Co-authored-by: Isaac
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.

1 participant