Skip to content

Commit

Permalink
call ensureUpToDate in pub run
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdm committed Aug 23, 2024
1 parent 38f2c05 commit 21843d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/command/run.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import 'dart:async';

import 'package:path/path.dart' as p;
import 'package:pub/src/entrypoint.dart';

import '../command.dart';
import '../executable.dart';
Expand Down Expand Up @@ -62,6 +63,7 @@ class RunCommand extends PubCommand {
log.message('Deprecated. Use `dart run` instead.');
});
}
await Entrypoint.ensureUpToDate(entrypoint.workspaceRoot.dir, cache: cache);
if (argResults.rest.isEmpty) {
usageException('Must specify an executable to run.');
}
Expand Down

0 comments on commit 21843d6

Please sign in to comment.