Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
fix: post_gen run not detected
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Nov 23, 2023
1 parent 49dd606 commit e127add
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions brick/hooks/post_gen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ typedef RunProcess = Future<ProcessResult> Function(
bool runInShell,
});

Future<void> run(
HookContext context, {
@visibleForTesting RunProcess runProcess = Process.run,
}) async {
Future<void> run(HookContext context,
// We intentionally ignore the trailing comma until the following mason issue is
// fixed: https://github.com/felangel/mason/pull/1164
// ignore: require_trailing_commas
{@visibleForTesting RunProcess runProcess = Process.run}) async {
// Some imports are relative to the user specified package name, hence
// we try to fix the import directive ordering after the template has
// been generated.
Expand Down

0 comments on commit e127add

Please sign in to comment.