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

Encode slashes in package names in the registry manifest request #5716

Merged
merged 7 commits into from
Sep 19, 2023

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Fixes #5076

Supersedes #5484

How did you verify your code works?

Updated a test. We also need to add integration tests for Artifactory, Azure Artifacts, and more of those, but this PR doesn't do that.

Jarred-Sumner and others added 2 commits September 18, 2023 21:30
Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com>
@Jarred-Sumner Jarred-Sumner force-pushed the fix-scoped-install-from-aws-codeartifact branch from 8f2d2b6 to 108c5f8 Compare September 19, 2023 04:31
// Not all registries support scoped package names when fetching the manifest.
// registry.npmjs.org supports both "@storybook%2Faddons" and "@storybook/addons"
// Other registries like AWS codeartifact only support the former.
// "npm" CLI requests the the manifest with the encoded name.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo (double "the")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@Jarred-Sumner Jarred-Sumner merged commit cc54b62 into main Sep 19, 2023
4 checks passed
@Jarred-Sumner Jarred-Sumner deleted the fix-scoped-install-from-aws-codeartifact branch September 19, 2023 06:27
@beeb
Copy link

beeb commented Sep 19, 2023

Thanks for the quick fix! This will enable evaluation of Bun at my workplace, I'm super excited.

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

Successfully merging this pull request may close these issues.

Private registry scoped package add fails due to forward slash not being encoded
2 participants