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

Invalidate cache when pubspec.lock is modified #14

Closed
tenhobi opened this issue Jan 19, 2024 · 0 comments · Fixed by #21
Closed

Invalidate cache when pubspec.lock is modified #14

tenhobi opened this issue Jan 19, 2024 · 0 comments · Fixed by #21
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tenhobi
Copy link
Member

tenhobi commented Jan 19, 2024

Add a new prune config (true by default) to invalidate caches when any pubspec.lock is modified since the last build.

That would prevent issues with one generated file using another.


If any package, which generates code, is updated, build_runner does not recognize that and will use cached version.

This can lead to error where updated dependency assumes different generated code etc.

Runner should cache snapshots of pubspec.lock and allow pruning cache directory if dependencies are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants