Commit 8950d3cc authored by Hixie's avatar Hixie

Make flutter analyze useful for package conflicts

Also, resolve our package conflict, since reflectable has been fixed.
parent 292d5aab
......@@ -10,14 +10,6 @@ dependencies:
vector_math: '>=1.4.5 <2.0.0'
quiver: '>=0.21.4 <0.22.0'
# We have to pin analyzer to 0.27.1 because the flx package depends
# on pointycastle which depends on reflectable which depends on
# analyzer 0.27.1 and if we don't pin it here, then different
# packages end up bringing in different analyzer versions which
# results in 'flutter analyze' (which uses an entirely different
# analyzer, by the way!) complaining about the inconsistency.
analyzer: 0.27.1
sky_engine:
path: ../../bin/cache/pkg/sky_engine
sky_services:
......
......@@ -31,8 +31,8 @@ Future<int> pubGet({
}
if (!checkLastModified || !pubSpecLock.existsSync() || pubSpecYaml.lastModifiedSync().isAfter(pubSpecLock.lastModifiedSync())) {
printStatus("Running 'pub get' in $directory${Platform.pathSeparator}...");
String command = upgrade ? 'upgrade' : 'get';
printStatus("Running 'pub $command' in $directory${Platform.pathSeparator}...");
int code = await runCommandAndStreamOutput(
<String>[sdkBinaryName('pub'), '--verbosity=warning', command],
workingDirectory: directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment