Skip to content

build: make git-describe versioning optional - #409

Merged
Supreeeme merged 1 commit into
Supreeeme:mainfrom
damaestro:make-vergen-optional
Sep 2, 2026
Merged

build: make git-describe versioning optional#409
Supreeeme merged 1 commit into
Supreeeme:mainfrom
damaestro:make-vergen-optional

Conversation

@damaestro

Copy link
Copy Markdown
Contributor

vergen-gitcl shells out to git, so it only works in a git checkout. Builds from a source tarball - distribution packages, vendored builds - get the placeholder VERGEN_IDEMPOTENT_OUTPUT instead of a version, and still have to build vergen-gitcl and its dependency tree to get it.

Move vergen-gitcl behind the new default-on "git-version" feature, and let any build pass its version in through the XRIZER_VERSION environment variable, which takes precedence over git describe when it is set. The default build is unchanged; builds with --no-default-features can now supply a meaningful version without a git checkout, and fall back to the version from Cargo.toml if they do not.

vergen-gitcl shells out to git, so it only works in a git checkout. Builds
from a source tarball - distribution packages, vendored builds - get the
placeholder VERGEN_IDEMPOTENT_OUTPUT instead of a version, and still have
to build vergen-gitcl and its dependency tree to get it.

Move vergen-gitcl behind the new default-on "git-version" feature, and let
any build pass its version in through the XRIZER_VERSION environment
variable, which takes precedence over git describe when it is set. The
default build is unchanged; builds with --no-default-features can now
supply a meaningful version without a git checkout, and fall back to the
version from Cargo.toml if they do not.
@Supreeeme
Supreeeme force-pushed the make-vergen-optional branch from ea2d998 to 7be8ef6 Compare September 2, 2026 01:15
@Supreeeme
Supreeeme enabled auto-merge (rebase) September 2, 2026 01:16
@Supreeeme
Supreeeme merged commit 4968d8d into Supreeeme:main Sep 2, 2026
3 checks passed
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