Skip to content

Conversation

jonahwilliams
Copy link
Contributor

Description

This reland fixes issues introduced when adjusting invalidation of the file hashes. An additional test case has been added which confirms that if the filecache is deleted we no longer crash.

@fluttergithubbot fluttergithubbot added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Sep 24, 2019
/// Only a subset of the arguments provided to the [KernelCompiler] are
/// supported here. Using the build pipeline implies a fixed multiroot
/// filesystem and requires a pubspec.
///
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change, but stale comment should be safe to delete...

final File file = _cacheFile;
if (!file.existsSync()) {
file.createSync();
file.createSync(recursive: true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the parent directory was missing this crashed with a missing file exception. The test added below exercises this case

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just reviewed the last commit, LGTM

@jonahwilliams jonahwilliams merged commit 84a476a into flutter:master Sep 25, 2019
@jonahwilliams jonahwilliams deleted the bundle_assemble branch September 25, 2019 14:44
jonahwilliams pushed a commit that referenced this pull request Sep 25, 2019
@jonahwilliams jonahwilliams restored the bundle_assemble branch September 25, 2019 15:31
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Sep 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants