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

Private package config not working with bit.dev #4816

Closed
lxnre-codes opened this issue Sep 10, 2023 · 3 comments
Closed

Private package config not working with bit.dev #4816

lxnre-codes opened this issue Sep 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@lxnre-codes
Copy link

lxnre-codes commented Sep 10, 2023

What version of Bun is running?

1.0.0

What platform is your computer?

Darwin 22.6.0 x86_64 i386

What steps can reproduce the bug?

doesn't work with bunfig.toml

# bunfig.toml 

[install.scopes]
# does not work
@myorg = { token = "my_token", url = "https://node.bit.cloud" }

# this works 
@myorg2 = { token = "my_token", url = "https://npm.pkg.github.com" }

This works with .npmrc

@myorg:registry=https://node.bit.cloud
//node.bitsrc.io/:_authToken=my_token
//node.bit.cloud/:_authToken=my_token

@myorg2:registry=https://registry.npmjs.org/
@myorg2:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=my_token

What is the expected behavior?

Private repository config should authenticate with bit cloud

What do you see instead?

Error 404. Failed to resolve package
Screenshot 2023-09-10 at 9 45 08 AM

Additional information

No response

@lxnre-codes lxnre-codes added the bug Something isn't working label Sep 10, 2023
@inimicus
Copy link

@0x-buidl Is this in your project's root directory, e.g. alongside package.json?

I had a similar issue that was resolved by moving, undesirably, .bunfig.toml to ~/.

If so, I believe the issue is related to #4901 .

@lxnre-codes
Copy link
Author

This doesn't work for bit.dev either

@lxnre-codes
Copy link
Author

fixed with #5906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants