Skip to content

Commit

Permalink
call ensureUpToDate in pub run (#4358)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdm authored Aug 27, 2024
1 parent 7a7cbe6 commit 8a3d088
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 @@ -7,6 +7,7 @@ import 'dart:async';
import 'package:path/path.dart' as p;

import '../command.dart';
import '../entrypoint.dart';
import '../executable.dart';
import '../log.dart' as log;
import '../utils.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 8a3d088

Please sign in to comment.