pw_env_setup: Fix setting cache dir

Setting the environment variable CIPD_CACHE_DIR to ~/.cipd-cache-dir by
default has no effect since this variable is not passed to cipd. Add it
to the command line. It did take effect the 2nd time bootstrap is run,
because the environment leaks between runs.

Bug: 259
Change-Id: I9a202cf00ee6e48e3bb83c1f490d3c3c5c93e294
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17605
Reviewed-by: Rob Mohr <mohrr@google.com>
Commit-Queue: Michael Spang <spang@google.com>
diff --git a/pw_env_setup/py/pw_env_setup/cipd_setup/update.py b/pw_env_setup/py/pw_env_setup/cipd_setup/update.py
index d391454..84c48c8 100755
--- a/pw_env_setup/py/pw_env_setup/cipd_setup/update.py
+++ b/pw_env_setup/py/pw_env_setup/cipd_setup/update.py
@@ -193,6 +193,7 @@
             '-ensure-file', ensure_file,
             '-root', install_dir,
             '-log-level', 'warning',
+            '-cache-dir', cache_dir,
             '-max-threads', '0',  # 0 means use CPU count.
         ]  # yapf: disable