Skip to content

Commit

Permalink
rename hash to fileHash
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Nov 12, 2022
1 parent 59a958a commit 55452af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/mason/lib/src/generator.dart
Expand Up @@ -640,7 +640,7 @@ extension on String {
}

extension on HookFile {
String get hash => sha1.convert(content).toString();
String get fileHash => sha1.convert(content).toString();

Directory get cacheDirectory {
return Directory(
Expand All @@ -658,6 +658,6 @@ extension on HookFile {
}

File get module {
return File(p.join(buildDirectory.path, '.$hash.dill'));
return File(p.join(buildDirectory.path, '.$fileHash.dill'));
}
}
2 changes: 1 addition & 1 deletion packages/mason/lib/src/hooks.dart
Expand Up @@ -291,7 +291,7 @@ class GeneratorHooks {
Future<void> _compile({required HookFile hook, Logger? logger}) async {
final hookCacheDir = hook.cacheDirectory;
final hookBuildDir = hook.buildDirectory;
final hookHash = hook.hash;
final hookHash = hook.fileHash;

try {
await hookBuildDir.delete(recursive: true);
Expand Down

0 comments on commit 55452af

Please sign in to comment.