Use --packages rather than --package-root
The .packages file is replacing the packages directory of symlinks.
This commit is contained in:
2
bin/cache/engine.version
vendored
2
bin/cache/engine.version
vendored
@@ -1 +1 @@
|
||||
f7909035f11b1347814ea2c2942426ef3cf7f44d
|
||||
ce3b4547ac579f67a6e473f7f5b5eac4357424ff
|
||||
|
||||
@@ -35,7 +35,7 @@ if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"`
|
||||
echo Building flutter tool...
|
||||
FLUTTER_DIR="$FLUTTER_ROOT/packages/flutter"
|
||||
(cd "$FLUTTER_TOOLS_DIR"; "../../bin/cache/dart-sdk/bin/pub" get --verbosity=warning)
|
||||
"$DART" --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH"
|
||||
"$DART" --snapshot="$SNAPSHOT_PATH" --packages="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH"
|
||||
echo $REVISION > "$STAMP_PATH"
|
||||
fi
|
||||
|
||||
@@ -51,7 +51,7 @@ set +e
|
||||
|
||||
if [ $FLUTTER_DEV ]; then
|
||||
echo -e "(FLUTTER_DEV set - ignoring $SNAPSHOT_PATH)\n"
|
||||
"$DART" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" "$@"
|
||||
"$DART" --packages="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH" "$@"
|
||||
else
|
||||
"$DART" "$SNAPSHOT_PATH" "$@"
|
||||
fi
|
||||
@@ -65,5 +65,5 @@ fi
|
||||
|
||||
set -e
|
||||
|
||||
"$DART" --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH"
|
||||
"$DART" --snapshot="$SNAPSHOT_PATH" --package="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH"
|
||||
"$DART" "$SNAPSHOT_PATH" "$@"
|
||||
|
||||
@@ -38,7 +38,7 @@ CD "%flutter_dir"
|
||||
REM Allows us to check if sky_engine's REVISION is correct
|
||||
CALL pub.bat get
|
||||
CD "%flutter_root%"
|
||||
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
|
||||
CALL %dart% --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.packages" "%script_path%"
|
||||
<nul SET /p=%revision%> "%stamp_path%"
|
||||
|
||||
:after_snapshot
|
||||
@@ -48,6 +48,6 @@ POPD
|
||||
CALL %dart% "%snapshot_path%" %*
|
||||
|
||||
IF /I "%ERRORLEVEL%" EQU "253" (
|
||||
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
|
||||
CALL %dart% --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.packages" "%script_path%"
|
||||
CALL %dart% "%snapshot_path%" %*
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user