Use 'pub get --offline' for scenario_app deps (flutter/engine#26254)
This commit is contained in:
3
DEPS
3
DEPS
@@ -407,6 +407,9 @@ deps = {
|
||||
'src/third_party/pkg/process':
|
||||
Var('github_git') + '/google/process.dart.git' + '@' + '0c9aeac86dcc4e3a6cf760b76fed507107e244d5', # 4.2.1
|
||||
|
||||
'src/third_party/pkg/vector_math':
|
||||
Var('github_git') + '/google/vector_math.dart.git' + '@' + 'v2.1.0',
|
||||
|
||||
'src/third_party/pkg/when':
|
||||
Var('dart_git') + '/when.git' + '@' + '0.2.0',
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ analyze \
|
||||
"$FLUTTER_DIR/testing/dart"
|
||||
|
||||
echo "Analyzing testing/scenario_app..."
|
||||
(cd "$FLUTTER_DIR/testing/scenario_app" && "$PUB" get)
|
||||
(cd "$FLUTTER_DIR/testing/scenario_app" && "$PUB" get --offline)
|
||||
analyze \
|
||||
--packages="$FLUTTER_DIR/testing/scenario_app/.dart_tool/package_config.json" \
|
||||
--options "$FLUTTER_DIR/analysis_options.yaml" \
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Signature: 469fde92656a4a5e122b7601271cf2cb
|
||||
Signature: a62660b42e470ade57e05b076bff1222
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ PUB="$HOST_TOOLS/dart-sdk/bin/pub"
|
||||
PUB_VERSION="$("$PUB" --version)"
|
||||
echo "Using Pub ${PUB_VERSION} from $PUB"
|
||||
|
||||
(cd "$SCRIPT_DIR"; "$PUB" get)
|
||||
(cd "$SCRIPT_DIR"; "$PUB" get --offline)
|
||||
|
||||
echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS."
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ PUB="$HOST_TOOLS/dart-sdk/bin/pub"
|
||||
PUB_VERSION="$("$PUB" --version)"
|
||||
echo "Using Pub $PUB_VERSION from $PUB"
|
||||
|
||||
"$PUB" get
|
||||
"$PUB" get --offline
|
||||
|
||||
echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS."
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ PUB="$HOST_TOOLS/dart-sdk/bin/pub"
|
||||
PUB_VERSION=$("$PUB" --version)
|
||||
echo "Using Pub $PUB_VERSION from $PUB"
|
||||
|
||||
"$PUB" get
|
||||
"$PUB" get --offline
|
||||
|
||||
echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS."
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ PUB="$HOST_TOOLS/dart-sdk/bin/pub"
|
||||
PUB_VERSION=$("$PUB" --version)
|
||||
echo "Using Pub $PUB_VERSION from $PUB"
|
||||
|
||||
"$PUB" get
|
||||
"$PUB" get --offline
|
||||
|
||||
echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS."
|
||||
|
||||
|
||||
@@ -1,18 +1,33 @@
|
||||
# Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
name: scenario_app
|
||||
publish_to: none
|
||||
environment:
|
||||
sdk: '>=2.12.0-0 <3.0.0'
|
||||
|
||||
# Do not add any dependencies that require more than what is provided in
|
||||
# //third_party/dart/pkg, //third_party/dart/third_party/pkg, or
|
||||
# //third_party/pkg. In particular, package:test is not usable here.
|
||||
|
||||
# If you do add packages here, make sure you can run `pub get --offline`, and
|
||||
# check the .packages and .package_config to make sure all the paths are
|
||||
# relative to this directory into //third_party/dart, or //third_party/pkg
|
||||
|
||||
# These are for convenience during local development. Changing them will not
|
||||
# impact the build.
|
||||
dependencies:
|
||||
sky_engine:
|
||||
path: ../../../out/host_debug_unopt/gen/dart-pkg/sky_engine
|
||||
sky_services:
|
||||
path: ../../../out/host_debug_unopt/gen/dart-pkg/sky_services
|
||||
vector_math: ^2.0.8
|
||||
sky_engine: any
|
||||
sky_services: any
|
||||
vector_math: any
|
||||
|
||||
dependency_overrides:
|
||||
meta:
|
||||
path: ../../../third_party/dart/pkg/meta
|
||||
sky_engine:
|
||||
path: ../../../out/host_debug_unopt/gen/dart-pkg/sky_engine
|
||||
sky_services:
|
||||
path: ../../../out/host_debug_unopt/gen/dart-pkg/sky_services
|
||||
vector_math:
|
||||
path: ../../../third_party/pkg/vector_math
|
||||
|
||||
@@ -1670,6 +1670,7 @@ class _RepositoryPkgDirectory extends _RepositoryDirectory {
|
||||
&& entry.name != 'petitparser'
|
||||
&& entry.name != 'platform'
|
||||
&& entry.name != 'process'
|
||||
&& entry.name != 'vector_math'
|
||||
&& entry.name != 'xml';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user