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

Cache is hit after dependency files were changed #1221

@cinan

Description

@cinan

What version of Turborepo are you using?

1.2.8

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

Yarn v1, Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Mac

Describe the Bug

In some cases, cache is hit (altough it should be missed) after package dependencies has been changed.

Expected Behavior

Cache should be missed.

To Reproduce

Testing repo: https://github.com/cinan/turbo-cache-bug (this is vanilla turborepo installed with npx create-turbo@latest)

I ran yarn lint for the 1st time to build new cache. After that I changed packages/eslint-config-acme/index.js content and re-ran yarn lint. I can see FULL TURBO -- all caches are hit.

The 2nd time I ran yarn lint I'd expect cache is missed for all packages where eslint-config-custom dependency is mentiond in dependencies list.

Metadata

Metadata

Assignees

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