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

turbo run --dry=json says cache.local=false yet when I run the task, it says cache hit #9044

@BenjaminVanRyseghem

Description

@BenjaminVanRyseghem

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/BenjaminVanRyseghem/turbo-bug

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

Yarn v1

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

2.0.15-canary.2

Describe the Bug

As explained here on our CI, I end up in a situation where the dry run tells me there is no local cache (even though it is restored via a prior step), but when I run the actual task, it's a full turbo.

Expected Behavior

I am expecting both to be coherent, so that I can rely on the --dry=json parameter to know when to skip CI steps

To Reproduce

I managed to reproduce it locally as you can see in the following screenshot, using this repo

Screenshot 2024-08-22 at 11 16 32

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions