Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semver cannot be used with Github gists #1329

Closed
cyberbiont opened this issue May 20, 2020 · 3 comments
Closed

Semver cannot be used with Github gists #1329

cyberbiont opened this issue May 20, 2020 · 3 comments

Comments

@cyberbiont
Copy link

Official documentation implies that one can use semver syntax with gists
npm install gist:[<githubname>/]<gistID>[#<commit-ish>|#semver:<semver>]:

It doesn't seem to be true.

@cyberbiont
Copy link
Author

github-tools/github#610

@ljharb
Copy link
Contributor

ljharb commented May 21, 2020

gists are just GitHub repos, so I’m not sure why it wouldn’t work.

@cyberbiont
Copy link
Author

You are right.
The problem is that Github for some reason doesn't provide a possibility to tag the gist though web interface, like it does for regular repos. It seems to work though if I clone the gist locally, tag a commit and push it back on Github, then I am able to update with npm install. Very inconvenient, but I think that this is not npm's problem, so i will close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants