-
-
Notifications
You must be signed in to change notification settings - Fork 176
Description
I'm curious about this. It looks like if I change the version in version.json to something like 2.4, and then commit and build, the version number I get is actually 2.4.1 rather than 2.4.0. From the source, it looks like the package is reserving 0 for a changed but uncommitted version.json, and always returning a positive (rather than non-negative) git height once the change is committed.
There are some unfortunate implications here. First, it means that git height for this library is calculated in a different manner from the other libraries I've seen, in which the commit where the change was introduced is 0. (It's also different from what is implied by the README, and what I think a user would expect to be the case.) Second, it means that I can never release a version of my assembly which is x.y.0. Among other things, I think this might run counter to the SemVer spec, which indicates that patch must be reset to 0 when minor or major increments.
Can you clarify why the git height is calculated this way?