Skip to content

Embed commit in version string when developing - #143

Merged
istathar merged 1 commit into
technique-lang:mainfrom
istathar:embed-version
Aug 1, 2026
Merged

Embed commit in version string when developing#143
istathar merged 1 commit into
technique-lang:mainfrom
istathar:embed-version

Conversation

@istathar

@istathar istathar commented Jul 31, 2026

Copy link
Copy Markdown
Member

For non-release builds, embed the commit (and, if present, dirty status) in the version string. This allows a developer to know whether they are running a release, a build from a fully committed tree or, a local work-in-progress.

The result is that a release build will show a version of v0.6.5 being the tag name. A build from a Git checkout with work done since the tag will be the Cargo package version and Git commit hash v0.6.6+24824ba, and a build from a checkout with locally uncommitted files will show as v0.6.6+24824ba.dev.

@istathar istathar self-assigned this Jul 31, 2026
@istathar istathar changed the title Embed commit in version string Embed commit in version string when developing Jul 31, 2026
@istathar
istathar merged commit a0cc48f into technique-lang:main Aug 1, 2026
1 check passed
@istathar
istathar deleted the embed-version branch August 1, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant