andir / npins

Nix dependency pinning. Very similar to Niv but has a few features that I personally wanted.
European Union Public License 1.2
180 stars 14 forks source link

Support Git tag prefixes #29

Open andir opened 2 years ago

andir commented 2 years ago

Some projects (notably Emacs) have prefixes in their release tags (e.g. emacs-1.2.3) instead of just bare version numbers. We should support these kinds of tags.

There are two rough ideas that come to mind:

piegamesde commented 2 years ago

At the moment we use a fuzzy SemVer parser. It will accept bare version numbers with a few additions to the official specification. It will also automatically strip a leading v to the version number.

I think we could try to strip *- from the tags and see if they parse after that. I'd like to not have users specify a prefix, and I'd like to call repositories with multiple (independently tagged) applications out of scope.