provide a way to override cipd root for *nix systems.

So that it allows depot tools has the ability to write the cipd pkgs
outside of the repo.

windows support will be added in a follow-up change.

Bug: 355430412
Change-Id: I7fabed7ecac8216ba3f3f639217d9e36746241f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5742434
Reviewed-by: Gregory Guterman <guterman@google.com>
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
This commit is contained in:
Yiwei Zhang
2024-07-30 15:06:06 +00:00
committed by LUCI CQ
parent 68c038603f
commit 1790a4b687
12 changed files with 30 additions and 24 deletions

5
prpc
View File

@@ -9,7 +9,6 @@
MYPATH=$(dirname "${BASH_SOURCE[0]}")
source "$MYPATH/cipd_bin_setup.sh"
cipd_bin_setup &> /dev/null
exec "$MYPATH/.cipd_bin/prpc" "$@"
CIPD_ROOT=$(cipd_bin_setup) &> /dev/null
exec "$CIPD_ROOT/prpc" "$@"