@@ -33,12 +33,12 @@ class DependenciesHashFile {
33
33
void _reset () => _hashes = FileSystemHashes ();
34
34
35
35
/// Populate the hashes and persist file with entries from
36
- /// [fileSystemEntities] .
36
+ /// [fileSystemEntities] and [environment] .
37
37
///
38
- /// If [fileSystemValidBeforeLastModified] is provided, any entities that were
39
- /// modified after [fileSystemValidBeforeLastModified] will get a dummy hash
40
- /// so that they will show up as outdated. If any such entity exists, its uri
41
- /// will be returned.
38
+ /// Any file system entities that were modified after
39
+ /// [fileSystemValidBeforeLastModified] will get a dummy hash so that they
40
+ /// will show up as outdated. If any such entity exists, its uri will be
41
+ /// returned.
42
42
Future <Uri ?> hashDependencies (
43
43
List <Uri > fileSystemEntities,
44
44
DateTime fileSystemValidBeforeLastModified,
@@ -135,8 +135,9 @@ class DependenciesHashFile {
135
135
return _hashNotExists;
136
136
}
137
137
final children = directory.listSync (followLinks: true , recursive: false );
138
- final childrenNames = children.map ((e) => _pathBaseName (e.path)).join (';' );
139
- return _md5int64 (utf8.encode (childrenNames));
138
+ final childrenNames = children.map ((e) => _pathBaseName (e.path)).toList ()
139
+ ..sort ();
140
+ return _md5int64 (utf8.encode (childrenNames.join (';' )));
140
141
}
141
142
142
143
int _hashEnvironmentValue (String ? value) {
0 commit comments