Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6e80ad0c
Unverified
Commit
6e80ad0c
authored
Jun 17, 2022
by
Michael Thomsen
Committed by
GitHub
Jun 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from .packages to package_config (#106202)
parent
40516e35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
flutter.bat
bin/flutter.bat
+1
-1
shared.bat
bin/internal/shared.bat
+2
-2
shared.sh
bin/internal/shared.sh
+2
-2
No files found.
bin/flutter.bat
View file @
6e80ad0c
...
...
@@ -51,4 +51,4 @@ REM
REM Do not use the CALL command in the next line to execute Dart. CALL causes
REM Windows to re-read the line from disk after the CALL command has finished
REM regardless of the ampersand chain.
"%dart%" --disable-dart-dev --packages="%flutter_tools_dir%\.
packages
" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* & exit /B !ERRORLEVEL!
"%dart%" --disable-dart-dev --packages="%flutter_tools_dir%\.
dart_tool\package_config.json
" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* & exit /B !ERRORLEVEL!
bin/internal/shared.bat
View file @
6e80ad0c
...
...
@@ -163,9 +163,9 @@ GOTO :after_subroutine
POPD
IF "%FLUTTER_TOOL_ARGS%" == "" (
"%dart%" --verbosity=error --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.
packages
" --no-enable-mirrors "%script_path%"
"%dart%" --verbosity=error --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.
dart_tool\package_config.json
" --no-enable-mirrors "%script_path%"
) else (
"%dart%" "%FLUTTER_TOOL_ARGS%" --verbosity=error --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.
packages
" "%script_path%"
"%dart%" "%FLUTTER_TOOL_ARGS%" --verbosity=error --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.
dart_tool\package_config.json
" "%script_path%"
)
IF "%ERRORLEVEL%" NEQ "0" (
ECHO Error: Unable to create dart snapshot for flutter tool. 1>&2
...
...
bin/internal/shared.sh
View file @
6e80ad0c
...
...
@@ -155,7 +155,7 @@ function upgrade_flutter () (
pub_upgrade_with_retry
# Compile...
"
$DART
"
--verbosity
=
error
--disable-dart-dev
$FLUTTER_TOOL_ARGS
--snapshot
=
"
$SNAPSHOT_PATH
"
--packages
=
"
$FLUTTER_TOOLS_DIR
/.
packages
"
--no-enable-mirrors
"
$SCRIPT_PATH
"
"
$DART
"
--verbosity
=
error
--disable-dart-dev
$FLUTTER_TOOL_ARGS
--snapshot
=
"
$SNAPSHOT_PATH
"
--packages
=
"
$FLUTTER_TOOLS_DIR
/.
dart_tool/package_config.json
"
--no-enable-mirrors
"
$SCRIPT_PATH
"
echo
"
$compilekey
"
>
"
$STAMP_PATH
"
fi
# The exit here is extraneous since the function is run in a subshell, but
...
...
@@ -222,7 +222,7 @@ function shared::execute() {
flutter
*
)
# FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be
# considered as separate space-separated args.
exec
"
$DART
"
--disable-dart-dev
--packages
=
"
$FLUTTER_TOOLS_DIR
/.
packages
"
$FLUTTER_TOOL_ARGS
"
$SNAPSHOT_PATH
"
"
$@
"
exec
"
$DART
"
--disable-dart-dev
--packages
=
"
$FLUTTER_TOOLS_DIR
/.
dart_tool/package_config.json
"
$FLUTTER_TOOL_ARGS
"
$SNAPSHOT_PATH
"
"
$@
"
;;
dart
*
)
exec
"
$DART
"
"
$@
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment