-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
dunamai.Version.from_git() fails if 'v' prefix not set #61
Comments
This is intentional as the default behavior, but you can set This is covered in the README: https://github.com/mtkennerly/dunamai#tips
The main reason is to prevent false positives from tags that weren't meant to be a version. For example, without the |
Ok thanks, but is avoiding user errors really more important than being compliant with standards... ?
Would make more sense to have an option to disable it. But anyway, the problem is not on my own code but through copier . |
From my perspective, those standards apply to the final output version, but not to the tag itself. There may not be standards for tag naming, but there are at least common patterns, and I would say the
I'm someone who uses Dunamai, and my projects have |
You are right about the global usage, it is variable on projet / people. I see no good enougth reason to have a non-standardized format mandatory while standardized one are actually not supported by default. By the way, was not asking you if you agree to remove the 'v' bu just to make it optional. |
If I have a repository with a version tagged 0.1.3.post1 (exemple), doing a dunamai.Version.from_git() will fail because of the missing front 'v'.
I managed to make it work in my project by doing a preliminary step:
Notice the '?' after the v.
Isn't a thing it should support from scratch as PEP440 does not require it ?
Note: using version 1.15.0
The text was updated successfully, but these errors were encountered: