-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 registry scoped package add fails due to forward slash not being encoded #5076
Comments
I am having the same problem, using AWS CodeArtifact |
Same here.... |
Running into this issue as well. It looks like the URL is created here unless mistaken. |
Same here |
same here |
Does someone have the knowledge of Zig to add url-encoding to the package name in the code linked above? Looks like a rather important issue (blocker with no known workaround) |
After a big more digging I found that the above linked code wasn't the right place, it handles pulling the tar file, but the failure is occurring when fetching the package manifest. Put up a PR that is working for me locally. |
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
MacOS - Darwin 22.1.0 x86_64 i386
What steps can reproduce the bug?
Private NPM Registry AWS CodeArtifact, used for both private packages and to proxy public.
bunfig.toml
(also tried many, many varied configuration syntax)
Install any scoped package, for example
@storybook/addons
.What is the expected behavior?
Storybook Addons package is installed successfully, enabled by a successful GET request to:
https://something.d.codeartifact.somewhere.amazonaws.com/npm/repository/@storybook%2Faddons
Please note the
storybook%2Faddons
forward slash is URL encoded.What do you see instead?
Storybook Addons package is not installed successfully.
GET request to:
https://something.d.codeartifact.somewhere.amazonaws.com/npm/repository/@storybook/addons
... results in a
400 Bad Request
Please note the
storybook/addons
forward slash is not URL encoded.After
bun install
all non-scoped packages install successfully, and all scoped packages are listed:Additional information
I think that this issue is being discussed in the comments of #643, and it may improve clarity having a dedicated issue.
While I am using AWS Code Artifact, #643 suggests it is not limited to this artifact repository.
The text was updated successfully, but these errors were encountered: