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

Lockfile marshalling does not work with yarn v2/v3 (in node_modules mode) #268

@jakst

Description

@jakst

What version of Turborepo are you using?

1.0.9

Describe the Bug

Changes to the yarn.lock file do not trigger cache invalidations in yarn v2/v3. Even when using classic node_modules mode

Expected Behavior

A package bump that only affects the yarn.lock file should trigger cache invalidations for the workspaces that depend.

To Reproduce

Repo: https://github.com/Jakst/turbo-yarn-v3-repro

Steps:

  • Checkout the main branch and run yarn
  • Run yarn turbo run build
  • Checkout the modified-lockfile branch and run yarn
  • Run yarn turbo run build
  • Observe that the turbo build caches were not busted by the changes in the lockfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions