-
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
Implement semver protocol for git dependencies in bun install
#5870
Comments
bun install
fails with git dependency
@doloboyz The strange thing is if you do |
Seems to still fail for me on m1 macbook pro on Ventura 13.5. Going to upgrade to 13.6 tonight, but I highly doubt thats going to fix the issue. |
Have spotted the same issue running: FYI @ardatan |
Same issue here. Trying to build graphql mesh with Bun. |
We're having the same issue with
|
Same thing with
|
I have a private github repository as a dependency in the format like this {
"dependencies": {
"REPO": "https+git://TOKEN@github.com/ORG/REPO.git"
}
} It works when doing |
Is there a way to use any other package manager inside bun other than bun? I'm trying to deploy this to docker and wondering if there is a way to still use bun as a runtime. Otherwise I'll have to switch to node entirely :( |
I think you can use npm, yarn or pnpm then run the project using bun. |
Second this. This is how I'm currently using bun as well. Once some issues are fixed, prob will migrate to bun as a package manager as well. |
With version 1.0.18, I got similar errors too. As @ardatan suggested, still having to use yarn is pretty discouraging. |
UpdateOh, I think I have figured out what's going on. Bun is unable to install git dependencies that don't provide a I was getting this error:
The "solarray" repo does not have a Likewise, the dependency that @doloboyz (OP) wanted to install does not seem to have a https://github.com/uNetworking/uWebSockets.js/tree/750691839587a671653dc1f669fd7e000c6a33d4 Should I open a separate issue to suggest adding support for git dependencies that lack a Initial ReportThis is a major issue because it's a blocker. I was excited to move our Node.js projects to Bun instead of Pnpm, but we can't do it because of this issue. This is the problematic dependency: "solarray": "github:evmcheb/solarray#0625e7e" It's a git dependency pulled from GitHub, which can be installed and used just fine with Pnpm or Yarn. Interestingly, Bun works with this dependency: "forge-std": "github:foundry-rs/forge-std#v1.5.6", So there must be something in https://github.com/evmcheb/solarray that troubles Bun. I can't put my finger on what precisely because both that repo and https://github.com/foundry-rs/forge-std are pretty similar in structure (e.g., they both have git submodules). You can find my full error logs here. Is there any ETA for a fix? I used Bun v1.0.20 |
Changing the dep from ssh Bun 1.0.22 |
Using Bun v1.0.25 Still facing the same issue when trying to run Running |
Using Bun v1.0.25. It still fails when you run bun install with a dependency like "xxxxx": "git+ssh://git@github.com:xxx/xx.git#xxxxxxx". |
Any updates? Still stuck in the error. |
Same here, needed to switch to another package manager 😞 |
The same problem, anybody found the solution? |
Using 1.1.4, still the same |
The same problem with
|
The issue also in
|
bun install
fails with git dependencybun install
The semver protocol is not supported yet for git dependencies. We are planning to add support for that. Keeping this issue open to track the status of that.
@PaulRBerg this issue has since been fixed as of Bun v1.1.13+
@fabianlema this has been fixed as of Bun v1.1.9 or so
@ali-master were you able to reproduce this issue more than once? It reads like a network error
@peniqliotuv this should be fixed as of Bun v1.1.13+. Please leave a comment if you still run into it. |
currently I got a 401 error while installing but I can navigate to link and fetch the tarball:
//package.json
{
"dependencies": {
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.49.0"
}
} |
Same here, it's really weird that bun returns a 401 and
|
What version of Bun is running?
1.0.2
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
Paste the following into the terminal
mkdir unw-bug && cd unw-bug && bun init
Go to package.json and add the following as a dependency:
Alternatively, run
bun add uNetworking/uWebSockets.js
Run
bun install
What is the expected behavior?
Should result in successful install.
What do you see instead?
On
bun add uNetworking/uWebSockets.js
, the following is the output to the terminal:🔍 Resolving [1/2]
error: InstallFailed cloning repository for uWebSockets. 🚚 uNetworking/uWebSockets.js [3/3] error: InstallFailed extracting tarball for uNetworking/uWebSockets.
error: "git clone" for "uWebSockets.js" failed
error: "git clone" for "uWebSockets.js" failed
error: "package.json" for "uNetworking/uWebSockets.js" failed to open: FileNotFound
If running
bun install
with the pasted dependency provided above, the following is the output:bun install v1.0.2 (37edd5a)
🔍 Resolving [1/1]
error: InstallFailed cloning repository for uWebSockets.
error: "git clone" for "uWebSockets.js" failed
error: "git clone" for "uWebSockets.js" failed
Additional information
No response
The text was updated successfully, but these errors were encountered: