• Greg Spencer's avatar
    Use .pub-cache from Flutter root, if it exists. (#13358) · f29ecba6
    Greg Spencer authored
    The purpose of this PR is to make it so that when the user runs 'flutter', if they have a .pub-cache directory in their flutter root, we use that instead of the default location for the pub cache. Otherwise, it should act as before.
    
    The eventual goal is to support a pre-populated flutter .zip/.tar.gz file that has everything the developer needs in one bundle. In order for that to actually work, we need to have the pub cache be self-contained, and not in the user's home dir.
    
    Another advantage of this is that if you have multiple flutter repos that you're switching between, then the versions in the pub cache will remain static when you switch between them.
    
    This is an attempt to re-land: #13248. Includes a fix for the test that makes it work on bots in the presence of PUB_CACHE being set, and no other changes.
    f29ecba6
Name
Last commit
Last update
..
README.md Loading commit data...
VERSION_LINUX_NDK Loading commit data...
VERSION_LINUX_SDK Loading commit data...
VERSION_MACOSX_NDK Loading commit data...
VERSION_MACOSX_SDK Loading commit data...
VERSION_WIN_SDK Loading commit data...
analyze-sample-code.dart Loading commit data...
docs.sh Loading commit data...
download_android_tools.py Loading commit data...
find_depot_tools.py Loading commit data...
pubspec.yaml Loading commit data...
test.dart Loading commit data...
travis_install.sh Loading commit data...
travis_setup.sh Loading commit data...
travis_upload.sh Loading commit data...
upload_android_tools.py Loading commit data...