From 391a6fbc2a45a93fac7645eb10aa2fcb515b526d Mon Sep 17 00:00:00 2001 From: Pablo Villoslada Puigcerber Date: Sun, 25 Oct 2015 20:54:21 +0100 Subject: [PATCH] docs(developer.md): add PUB_CACHE variable to setup instructions If PUB_CACHE is not set the pub dependencies are downloaded to a default folder during the build because `gulp build` also runs `pub get`. Running the tests locally PUB_CACHE is set to a subdirectory of the SDK when the `env_dart.sh` script is sourced. Therefore `build/pubbuild.dart` fails as it can't find the dependencies. Closes #4900 --- DEVELOPER.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DEVELOPER.md b/DEVELOPER.md index 42601892cad..1980d15e66d 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -95,6 +95,14 @@ export DART_SDK="$DART_EDITOR_DIR/dart-sdk" PATH+=":$DART_SDK/bin" ``` +And specify where the pub’s dependencies are downloaded. By default, this directory is located under .pub_cache +in your home directory (on Mac and Linux), or in AppData\Roaming\Pub\Cache (on Windows). + +```shell +# PUB_CACHE: location of pub dependencies +export PUB_CACHE="/Users//.pub-cache" +``` + ## Installing NPM Modules and Dart Packages Next, install the JavaScript modules and Dart packages needed to build and test Angular: