Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildcommands: Add support for a versionstamp file #6742

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Laikulo
Copy link
Contributor

@Laikulo Laikulo commented Nov 18, 2024

Adds support for a versionstamp file at src/.version, similar to the one used by klippy at klippy/.version.

If git cannot determine the version being built (either because git is not present on the system, or klipper was downloaded as a tar/zip from github) buildcommands will read src/.version as a fallback. Versions determined this way are always considered "clean".

If a file is located at src/.version, and git cannot determine the
current version, the contents of this file is used as the version.

This is equivelant to similar behavior in klippy.

Signed-off-by: Aaron Haun <[email protected]>
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