native_messenger
native_messenger copied to clipboard
Automatic version numbers
https://github.com/achesak/nim-gitapi/blob/master/gitapi.nim
I reckon version = last git tag + (if tag isn't at head: short commit hash)
Probably needs to go in the nimble build script.
At the moment it's easy for the version number and the tag to diverge, and for PRs to fight over version numbers.
Hmm, semver-compare
as used in nativegate
treats version numbers with extra alphanumeric bits as smaller than ones without:
> cmp("0.1.1d", "0.1.1")
-1
So we'll probably need to increment the last digit of the git tag.
Considering semver-compare
is only 13 lines of code, it shouldn't be too hard to roll our own that does what we want.
I was thinking of the backwards compatibility.
I suppose it doesn't matter if we're adding new things to Tridactyl.