-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: ERR_PNPM_TARBALL_EXTRACT
when the URL's hash contains a slash
#8761
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
💖 Thanks for opening this pull request! 💖 |
wantedDependency: { pref: string } | ||
): Promise<ResolveResult | null> { | ||
if (!wantedDependency.pref.startsWith('http:') && !wantedDependency.pref.startsWith('https:')) { | ||
if (!(wantedDependency.pref.startsWith('http:') || wantedDependency.pref.startsWith('https:'))) { |
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.
why was this changed? it is unrelated to the fix
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.
Sorry, this is my own hobby. This writing is better for my understanding...
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no suggestions.
Comments skipped due to low confidence (2)
pnpm/test/install/misc.ts:574
- The test should verify that the package was correctly installed. Add an assertion to check the presence of the installed package.
expect(result.status).toBe(0)
resolving/tarball-resolver/src/index.ts:32
- Reassigning 'pref' might lead to unintended side effects. Consider using a new variable instead.
pref = url.href
Co-authored-by: Zoltan Kochan <[email protected]>
Congrats on merging your first pull request! 🎉🎉🎉 |
Before determine the URL type, encode the hash if it contains a slash.
Fix: #7697