-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
workspace packages list gets stale if new workspace packages are depended on #3686
Comments
I have a different issue around workspaces, I get
This happens on bun install |
This was working fine for me until I ran I have "workspaces": [
"apps/*",
"packages/*"
] in my |
@potrepka I'm glad it's not just me who's getting this |
Getting this issue as well, not sure what's going on. Following everything in the docs, trying to port over from pnpm to bun as a package manager but this is kind of a roadblock atm. |
Same issue. To reproduce:
|
The same issue for me :( P.S. Just tried it with |
I'm also getting this error Searched in "./*"` package.json is correctly configured with "packages/*", also tried specifying the packages individually, didn't work. Coming from pnpm workspaces, I had no such issue there. |
I got it to work by deleting the It appears to happen sporadically. I'm not sure what's going wrong under the hood. Also had no such issue with pnpm. |
getting the same issue, any updates? |
I think all errors If you are getting |
this really helped! thanks also, my 2 cents here, I noticed that every time I create a new package inside the workspace This looks like it only is a problem for the first module that tries to install the new package, something like:
if i try to remove a package from dependencies and then |
workspace:
packages list gets stale if new workspace packages are depended on
workspace:
packages list gets stale if new workspace packages are depended on
Confirming this is not fixed as of Bun v1.0.11 The bug is not specifically related to the workspace version specifier. It is due to not updating the list of workspace_versions and workspace package names on each run, which causes the list to get stale |
Do we know when this will be fixed?
…On Wed, 15 Nov 2023, 07:48 Jarred Sumner, ***@***.***> wrote:
Confirming this is not fixed as of Bun v1.0.11
The bug is not specifically related to the workspace version specifier. It
is due to not updating the list of workspace_versions and workspace package
names on each run, which causes the list to get stale
reproduction.zip
<https://github.com/oven-sh/bun/files/13361754/worky1.zip>
—
Reply to this email directly, view it on GitHub
<#3686 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHOFWX4CZZCP5H2QPWHC5K3YERXWLAVCNFSM6AAAAAA2QQPGHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJRHE2TQOBUHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Getting same error on 1.0.22, if I delete bun.lockb then bun install works again but I have to remove after I install a new package or if a added a new folder under the directories listed on workspaces: [] package.json array. |
What version of Bun is running?
v0.6.15 (1790357)
What platform is your computer?
Darwin 21.6.0 arm64 arm
What steps can reproduce the bug?
Create a file
package.json
with:Create a second file
packages/a/package.json
with:Then run
bun install
in the root.What is the expected behavior?
It creates a
node_moudules
witha
symlinked topackages/a
.What do you see instead?
Error
Additional information
As a workaround, replacing
workspace:^
withworkspace:*
works.For reference, these are the semantics of the
workspace:
protocol in yarn and pnpm.The text was updated successfully, but these errors were encountered: