Skip to content

feat(pumpkin-solver): Expose version and git commit in crate#404

Merged
maartenflippo merged 2 commits intomainfrom
feat/solver-version-in-build
Mar 31, 2026
Merged

feat(pumpkin-solver): Expose version and git commit in crate#404
maartenflippo merged 2 commits intomainfrom
feat/solver-version-in-build

Conversation

@maartenflippo
Copy link
Copy Markdown
Contributor

The version and git commit hash are included as env!() variables. For the git commit hash, we use vergen to emit the appropriate variables.

Closes #268.

The version and git commit hash are included as `env!()` variables. For
the git commit hash, we use vergen to emit the appropriate variables.

Closes #268.
@EmirDe
Copy link
Copy Markdown
Contributor

EmirDe commented Mar 30, 2026

This is a very welcome addition!

Question: Where should we print the information about the commit hash? Should this be a command line parameter that just prints the version, or should we print it somewhere else?

@maartenflippo
Copy link
Copy Markdown
Contributor Author

Question: Where should we print the information about the commit hash? Should this be a command line parameter that just prints the version, or should we print it somewhere else?

I think it makes sense to always log this information. That way we always know which version of the solver produced a log.

@maartenflippo maartenflippo merged commit 8851699 into main Mar 31, 2026
8 checks passed
@maartenflippo maartenflippo deleted the feat/solver-version-in-build branch March 31, 2026 06:00
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.

Include the Git hash/branch on build

3 participants