这是indexloc提供的服务,不要输入任何密码
Skip to content

Empty resolutions after turbo prune #1842

@oceandrama

Description

@oceandrama

What version of Turborepo are you using?

1.4.3

What package manager are you using / does the bug impact?

Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Windows

Describe the Bug

After turbo prune in out folder yarn.lock has empty resolution field in all dependencies:

"@adobe/css-tools@npm:^4.0.1":
  version: 4.0.1
  resolved: ""
  integrity: ""

And after yarn install it generates the following error:

Assertion failed: Expected the lockfile entry to have a resolution field (@adobe/css-tools@npm:^4.0.1)

Expected Behavior

yarn install works correctly

To Reproduce

In the basic example:

  1. yarn set version latest
  2. yarn config set nodeLinker node-modules
  3. yarn install
  4. yarn turbo prune --scope=web
  5. copy out folder somewhere (to exclude it from monorepo)
    In the out folder:
  6. yarn set version latest
  7. yarn config set nodeLinker node-modules
  8. yarn install

Metadata

Metadata

Labels

area: windowsIssues specifically reproducing on Windowskind: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions