Skip to content
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

Lerna 7 + Yarn 3: cache is not invalidated after making changes to source files #3793

Open
jtpio opened this issue Jul 27, 2023 · 1 comment
Assignees

Comments

@jtpio
Copy link

jtpio commented Jul 27, 2023

Current Behavior

With Lerna 7 when using the cacheableOperations option to cache build scripts, making changes to source files and re-running the build script does not trigger a new build.

Instead it reads from the cache even though the source files have changed, which is not the expected behavior.

Expected Behavior

When making a change to the source file of a project, re-running a build should not read from the cache.

Steps to Reproduce

Here is an example opened on the repro repository: lerna/repro#13

Here are two screencasts to highlight the issue. It is worth noting this is not an issue with Lerna 6.

Lerna 7

lerna-7-cache-issue.mp4

Lerna 6

lerna-6-cache-no-issue.mp4

Failure Logs / Configuration

lerna.json

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "0.0.0"
}

lerna-debug.log

<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->

Environment

@joshuambg
Copy link

Um. Is anybody at Lerna going to look into this? Its a serious error report.

So Lerna caching is just completely broken. The docs are wrong.

@fahslaj fahslaj self-assigned this Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants