Allow versioning for github repos as dependencies #3014

Closed
matthewmueller opened this Issue Dec 21, 2012 · 15 comments

5 participants

@matthewmueller

This would be a really nice feature to have:

"dependencies": {
  "set": "component/set@1.0.0"
}

or perhaps:

"dependencies": {
  "set": "component/set#1.0.0"
}
@nathan7
npm member

Semver for tags would be pretty awesome and certainly doable. I think we should support # for straight tags and @ for semver with tags (v1.2.3 style tags, like npm does)

@nathan7
npm member

I've added support for # on GitHub deps (115d67d). I'll see if we can implement semver.

@matthewmueller

awesome man, thanks!

@defunctzombie

See this post about git dependencies:
http://shtylman.com/post/npm-git-with-the-program/

You can already specify specific versions if you push the tags to git.

@nathan7
npm member

Yes, this already worked for straight git deps. This is about component-style "user/repo" deps.

@defunctzombie

@nathan7 It works for those as well.

@nathan7
npm member

Whoops. My (and @MatthewMueller's) bad.

@domenic
npm member

So to clarify, we have exact version support, but still want semver support.

@defunctzombie

@domenic I personally think exact versons are the way to go for various reasons (which I have outlined before).

@domenic domenic referenced this issue in requirejs/text Jan 6, 2013
Closed

Publish to npm #32

@nathan7
npm member

Okay, with the current git approach this should be no issue. I have to figure out if I can make it work for GitHub archives too.

@domenic
npm member

So @isaacs decided against the remaining part of this feature in #3328. Closing.

@domenic domenic closed this May 15, 2013
@defunctzombie
@domenic
npm member

@shtylman the last part being

So to clarify, we have exact version support, but still want semver support.

@defunctzombie
@luk-

yesssss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment