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

feat: update makefile to generate valid semver for dev builds #1916

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

Conversation

mkungla
Copy link
Contributor

@mkungla mkungla commented Feb 7, 2025

Summary

Ensure Dev Builds produce valid SemVer versions

This PR updates the Makefile to ensure that development builds generate valid SemVer versions, making it easier for tools to correctly identify the asdf version in different environments.

Currently, dev builds produce versions like:

$ asdf --version
asdf version "fdcd8af-dev"

This format is not a valid SemVer version and can cause issues for tools that rely on version comparisons.

With this PR, dev builds will now follow SemVer-compatible formatting, ensuring they always sort higher than the latest tagged release. For example, after 9 commits past v0.16.1, the output would be:

$ asdf --version
asdf version "v0.16.2-dev.9+856cc1d"

This ensures a consistent versioning scheme while keeping the commit hash for traceability.

Other Information

This addresses the concern I raised in this comment: #1901 (comment)

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