Closed rtsao closed 1 year ago
If you could somehow DM me the repo with just the package.json files but the same directory tree, that would probably be enough for me to debug
My guess is that the folders listed in workspaces
aren't an exact path from the root package.json
Seeing the issue here as well
https://github.com/algolia/instantsearch
bun install v0.5.0 (2db04ef9)
error: FileNotFound
bun could not find a file, and the code that produces this error is missing a better error.
----- bun meta -----
Bun v0.5.0 (2db04ef9) Linux x64 #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023
InstallCommand:
Elapsed: 3ms | User: 0ms | Sys: 4ms
RSS: 69.21MB | Peak: 17.61MB | Commit: 69.21MB | Faults: 0
----- bun meta -----
It uses glob pattern for workspaces
, which is not supported yet:
"workspaces": [
"examples/*/*",
"packages/*",
"tests/*",
"scripts/*",
Good to know. Where is the bun
code that reads the package.json
? I am interested in adding glob support.
This no longer reproduces with the latest canary: v0.5.0 (9dfbf573)
It now segfaults, but I think it's a different issue
What version of Bun is running?
0.5.0
What platform is your computer?
Darwin 22.2.0 arm64 arm
What steps can reproduce the bug?
Run
bun install
. This is happening on a large Yarn berry monorepo. No glob workspaces are used.What is the expected behavior?
What do you see instead?
Additional information
This monorepo has a single top-level
"workspaces"
field and zero nested workspaces.FWIW, the monorepo does Yarn's
patch:
protocol, but only within the top-level"resolutions"
field, which my understanding is not yet supported by Bun. That said, I figure this would merely be ignored.