-
Notifications
You must be signed in to change notification settings - Fork 331
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
Private repo with a semver tag hangs #850
Comments
Thanks for reporting! It sounds like a bug, but I unfortunately could not manage to reproduce it. I created a private repository both with and without personal access and with and without #semver, and it returned promptly each time. What happens when you do |
This is expected I think, because it's not on the NPM registry -- it's only on GitHub. |
Yes, that's expected. What do you get with |
Ah, I see what's happening: it prompts me for I pull this package using an SSH key instead of a username and password -- that works transparently on an
|
Interesting, thanks! Maybe if I log an extra line at the beginning of
|
Thanks for the help debugging this -- now that I know what's causing it, I can see a workaround (press enter twice). I could also use the full form: I expect I don't know how |
I'm not sure exactly why it works with |
Marking as |
Interesting, I get the password prompt every time. Do you also not get a password prompt for |
Good call. This does the trick for me: /usr/local/bin/git -c credential.helper= ls-remote -t https://github.com/raineorshine/ncu-test-private I should be able to make the password prompt visible, although I'm still not sure how to have it use your SSH credentials. |
When I print a blank line, it does place the password prompt on a separate line, however it causes the progress bar to be rendered twice (even when there is no password prompt). FWIW, when I get the password prompt it's not completely hidden, but is rendered immediately to the right of the progress bar. So I'm not sure why it's completely hidden for you. |
Might be a race condition? I first saw this on a repository with ~30 packages. Testing, I see:
So yes, I think the prompt disappears when the progress bar updates.
It changes with the URL you pass to
It looks like npm plans to use CDN, then git+ssh, then git+https if the repo is specified as |
Yeah, by the time
That's fair. That's a bit beyond what I'm available for, but I'm open to PRs. |
npm-check-updates
node >= 10.17
Steps to Reproduce
ncu
.Current Behavior
Hangs forever.
Expected Behavior
Either tells you it can't access the private repo or checks it.
Comments
Removing the semver tag works fine -- it only hangs when the semver tag is present.
The text was updated successfully, but these errors were encountered: