소스 검색

run `goma_ctl update_hook` in update_depot_tools

to make sure goma runs the latest version,
run `goma_ctl update_hook` in update_depot_tools

Bug: b/260864926
Change-Id: If8a6bc1b6e3b18339672dc26f609fab2d84aa987
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4160794
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Junji Watanabe <jwata@google.com>
Fumitoshi Ukai 2 년 전
부모
커밋
7879da9e9d
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      update_depot_tools
  2. 3 0
      update_depot_tools.bat

+ 3 - 0
update_depot_tools

@@ -143,6 +143,9 @@ if [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then
   source "$base_dir/cipd_bin_setup.sh"
   cipd_bin_setup
 
+  # Restart goma if it is updated.
+  goma_ctl update_hook
+
   # Don't bootstrap Python 3 on windows, since it is already done by
   # bootstrap/win_tools.bat.
   if [ "X$MINGW" != "X0" -a "X$DEPOT_TOOLS_BOOTSTRAP_PYTHON3" != "X0" ]; then

+ 3 - 0
update_depot_tools.bat

@@ -81,5 +81,8 @@ if errorlevel 1 (
 :: Sync CIPD and CIPD client tools.
 call "%~dp0\cipd_bin_setup.bat"
 
+:: Restart goma if it is updated.
+call "%~dp0\goma_ctl.bat" update_hook
+
 :: Update git and python
 call "%DEPOT_TOOLS_DIR%bootstrap\win_tools.bat"