-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix missing credentials when fetching tarballs #622
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
Conversation
14736a3
to
5a207b5
Compare
I'm not sure about this fix - in particular the Imo, the best fix would be to simply make |
Got it, will update accordingly. |
5a207b5
to
1f8fa03
Compare
1f8fa03
to
c666c9c
Compare
@@ -233,7 +233,7 @@ export const startPackageServer = (): Promise<string> => { | |||
[version as string]: Object.assign({}, packageVersionEntry!.packageJson, { | |||
dist: { | |||
shasum: await getPackageArchiveHash(name, version), | |||
tarball: localName === `unconventional-tarball` | |||
tarball: (localName === `unconventional-tarball` || localName === `private-unconventional-tarball`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also considering something like this (along the same lines of localName.startsWith(`private`)
):
tarball: (localName === `unconventional-tarball` || localName === `private-unconventional-tarball`) | |
tarball: localName.endsWith(`unconventional-tarball`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok for now - if we need to add more private packages we will just move the whitelist into a set 👍
Awesome, thanks a lot @rtsao! 🎉 |
What's the problem this PR addresses?
Fixes #601
How did you fix it?
npmHttpUtils.get
inNpmHttpFetcher
npmHttpUtils.get