Shrink wrap commit-ish Git URLs? #3347
Comments
Thank you. I hope it will be easier to use private modules mixed with public |
When you shrinkwrap a git url, it'll resolve the commit-ish and make sure that installing from the shrinkwrap will always get exactly that commit. (Ie, if your dep is
Yes, we have a syntax for specifying a commit-ish on git urls, and shrinkwrap will do the right thing with it: If you have a branch named If what you're asking for is to have npm get a list of all the tags, sniff which ones look like they might be version numbers, and then handle |
Yeah, that is what I was looking for. Thanks for answering this, but it is sad, that this isn't possible. |
Hi *,
is it possible to shrink-wrap a commit-ish Git URL? Unless it is easier to create a private
npm
I think it is a lot easier to use private Git repos for internal developing, but some featuresnpm
modules offer are missing from Git repos like shrink wrapping semver tags. (At least as I know?) A special syntax to use shrink wrap on commit-ish Git URLs would be really helpful. Maybe something likegit://github.com/user/project.git#{<0.1.0}
resolves to the highest available semver-valid tag above 0.1.0 likegit://github.com/user/project.git#v0.2.0
orgit://github.com/user/project.git#0.2.0
(it seems that some developers prefer to prepend a v before the version number within tags).What do you think?
The text was updated successfully, but these errors were encountered: