File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/flutter_tools/lib/src/build_runner Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import '../base/common.dart';
18
18
import '../base/file_system.dart' ;
19
19
import '../base/io.dart' ;
20
20
import '../base/logger.dart' ;
21
+ import '../base/platform.dart' ;
21
22
import '../base/process_manager.dart' ;
22
23
import '../codegen.dart' ;
23
24
import '../dart/package_map.dart' ;
@@ -205,10 +206,12 @@ class _BuildRunnerCodegenDaemon implements CodegenDaemon {
205
206
// Sorts the builders by name and produces a hashcode of the resulting iterable.
206
207
List <int > _produceScriptId (YamlMap builders) {
207
208
if (builders == null || builders.isEmpty) {
208
- return md5.convert (< int > [] ).bytes;
209
+ return md5.convert (platform.version.codeUnits ).bytes;
209
210
}
210
211
final List <String > orderedBuilders = builders.keys
211
212
.cast <String >()
212
213
.toList ()..sort ();
213
- return md5.convert (orderedBuilders.join ('' ).codeUnits).bytes;
214
+ return md5.convert (orderedBuilders
215
+ .followedBy (< String > [platform.version])
216
+ .join ('' ).codeUnits).bytes;
214
217
}
You can’t perform that action at this time.
0 commit comments