diff --git a/packages/flutter_tools/lib/src/flx.dart b/packages/flutter_tools/lib/src/flx.dart index 996b302340..18ef40c9e9 100644 --- a/packages/flutter_tools/lib/src/flx.dart +++ b/packages/flutter_tools/lib/src/flx.dart @@ -67,6 +67,7 @@ Future _createSnapshot({ final Checksum oldChecksum = new Checksum.fromJson(json); final Set inputPaths = await _readDepfile(depfilePath); inputPaths.add(snapshotPath); + inputPaths.add(mainPath); final Checksum newChecksum = new Checksum.fromFiles(inputPaths); if (oldChecksum == newChecksum) { printTrace('Skipping snapshot build. Checksums match.'); @@ -87,6 +88,7 @@ Future _createSnapshot({ try { final Set inputPaths = await _readDepfile(depfilePath); inputPaths.add(snapshotPath); + inputPaths.add(mainPath); final Checksum checksum = new Checksum.fromFiles(inputPaths); await checksumFile.writeAsString(checksum.toJson()); } catch (e, s) {