mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix sky_tools build command to look for package-root in global args
This commit is contained in:
parent
9996d4255e
commit
9e2a83cfa3
@ -150,7 +150,7 @@ class BuildCommand extends Command {
|
||||
await _compileSnapshot(
|
||||
compilerPath: argResults['compiler'],
|
||||
mainPath: argResults['main'],
|
||||
packageRoot: argResults['package-root'],
|
||||
packageRoot: globalResults['package-root'],
|
||||
snapshotPath: snapshotPath);
|
||||
archive.addFile(await _createSnapshotFile(snapshotPath));
|
||||
|
||||
|
||||
@ -27,7 +27,6 @@ class RunMojoCommand extends Command {
|
||||
|
||||
argParser.addOption('app', defaultsTo: 'app.flx');
|
||||
argParser.addOption('mojo-path', help: 'Path to directory containing mojo_shell and services');
|
||||
argParser.addOption('package-root', defaultsTo: 'packages');
|
||||
}
|
||||
|
||||
Future<String> _makePathAbsolute(String relativePath) async {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user