Skip to content

invalidate the snapshot when build_runner or build_daemon are updated #2374

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

Merged
merged 4 commits into from
Jul 24, 2019

Conversation

jakemac53
Copy link
Contributor

@jakemac53 jakemac53 commented Jul 24, 2019

Related to #1929

I ended up going with the build_runner/build_daemon version check since the error handling was going to get pretty gnarly once I looked at what it would actually take.

The check is done by examining where a fake uri resolves to for each package, since that actually catches some cases the version check alone wouldn't catch and it doesn't require reading/parsing any files.

Note that this will not catch cases where you have a path override on these packages as that path won't ever change even if the packages do, but that should only affect us internally.

@jakemac53 jakemac53 requested a review from natebosch July 24, 2019 17:35
@googlebot googlebot added the cla: yes Google is happy with the PR contributors label Jul 24, 2019
@jakemac53 jakemac53 merged commit f610222 into master Jul 24, 2019
@jakemac53 jakemac53 deleted the bad-snapshot-detection branch July 24, 2019 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google is happy with the PR contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants