Set DEPOT_TOOLS_UPDATE='0' assuming depot_tool do not auto update on bot

Bug: 1090603
Change-Id: Ib42c778c69588e44ce95b58eda5bc06b12550e9e
Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: build_limited_scripts_slave
Recipe-Nontrivial-Roll: chrome_release
Recipe-Nontrivial-Roll: chromiumos
Recipe-Nontrivial-Roll: infra
Recipe-Nontrivial-Roll: skia
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2228810
Commit-Queue: Arthur Wang <wuwang@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Stephen Martinis <martiniss@chromium.org>
35 files changed
tree: f0e49f136bfb8a9688e35f7c6ce30754ac419f50
  1. .cipd_impl.ps1
  2. .gitattributes
  3. .gitignore
  4. .style.yapf
  5. .vpython
  6. .vpython3
  7. CROS_OWNERS
  8. GOMA_OWNERS
  9. LICENSE
  10. LUCI_OWNERS
  11. OWNERS
  12. PRESUBMIT.py
  13. README.gclient.md
  14. README.git-cl.md
  15. README.md
  16. WATCHLISTS
  17. auth.py
  18. autoninja
  19. autoninja.bat
  20. autoninja.py
  21. bb
  22. bb.bat
  23. bootstrap/
  24. bootstrap_python3
  25. breakpad.py
  26. cipd
  27. cipd.bat
  28. cipd_bin_setup.bat
  29. cipd_bin_setup.sh
  30. cipd_client_version
  31. cipd_client_version.digests
  32. cipd_manifest.txt
  33. cipd_manifest.versions
  34. cit
  35. cit.bat
  36. cit.py
  37. clang-format
  38. clang-format.bat
  39. clang_format.py
  40. clang_format_merge_driver
  41. clang_format_merge_driver.bat
  42. clang_format_merge_driver.py
  43. codereview.settings
  44. compile_single_file
  45. compile_single_file.bat
  46. compile_single_file.py
  47. cpplint.bat
  48. cpplint.py
  49. cpplint_chromium.py
  50. cros
  51. crosjobs
  52. detect_host_arch.py
  53. download_from_google_storage
  54. download_from_google_storage.bat
  55. download_from_google_storage.py
  56. ensure_bootstrap
  57. fetch
  58. fetch.bat
  59. fetch.py
  60. fetch_configs/
  61. fix_encoding.py
  62. gclient
  63. gclient-new-workdir.py
  64. gclient.bat
  65. gclient.py
  66. gclient_completion.sh
  67. gclient_eval.py
  68. gclient_paths.py
  69. gclient_scm.py
  70. gclient_utils.py
  71. gerrit_client.py
  72. gerrit_util.py
  73. git-cache
  74. git-cl
  75. git-crrev-parse
  76. git-drover
  77. git-find-releases
  78. git-footers
  79. git-freeze
  80. git-gs
  81. git-hyper-blame
  82. git-map
  83. git-map-branches
  84. git-mark-merge-base
  85. git-nav-downstream
  86. git-nav-upstream
  87. git-new-branch
  88. git-number
  89. git-rebase-update
  90. git-rename-branch
  91. git-reparent-branch
  92. git-retry
  93. git-runhooks
  94. git-squash-branch
  95. git-templates/
  96. git-thaw
  97. git-upstream-diff
  98. git_cache.py
  99. git_cl.py
  100. git_cl_completion.sh
  101. git_common.py
  102. git_dates.py
  103. git_drover.py
  104. git_find_releases.py
  105. git_footers.py
  106. git_freezer.py
  107. git_hyper_blame.py
  108. git_map.py
  109. git_map_branches.py
  110. git_mark_merge_base.py
  111. git_nav_downstream.py
  112. git_new_branch.py
  113. git_number.py
  114. git_rebase_update.py
  115. git_rename_branch.py
  116. git_reparent_branch.py
  117. git_retry.py
  118. git_squash_branch.py
  119. git_upstream_diff.py
  120. gn
  121. gn.bat
  122. gn.py
  123. goma_auth
  124. goma_auth.bat
  125. goma_ctl
  126. goma_ctl.bat
  127. gsutil.py
  128. gsutil.py.bat
  129. gsutil.vpython
  130. infra/
  131. led
  132. led.bat
  133. lockfile.py
  134. luci-auth
  135. luci-auth.bat
  136. lucicfg
  137. lucicfg.bat
  138. mac_toolchain
  139. man/
  140. metrics.README.md
  141. metrics.py
  142. metrics_utils.py
  143. my_activity.py
  144. ninja
  145. ninja-linux32
  146. ninja-linux64
  147. ninja-mac
  148. ninja.exe
  149. ninjalog.README.md
  150. ninjalog_uploader.py
  151. ninjalog_uploader_wrapper.py
  152. owners.py
  153. owners_finder.py
  154. post_build_ninja_summary.py
  155. presubmit_canned_checks.py
  156. presubmit_support.py
  157. profile.xml
  158. prpc
  159. prpc.bat
  160. pylint
  161. pylint-1.5
  162. pylint-1.6
  163. pylint-1.7
  164. pylint-1.8
  165. pylint-1.9
  166. pylint.bat
  167. pylint_main.py
  168. pylintrc
  169. python-bin/
  170. python_runner.sh
  171. rdb
  172. rdb.bat
  173. recipes/
  174. repo
  175. roll-dep
  176. roll-dep.bat
  177. roll_dep.py
  178. scm.py
  179. setup_color.py
  180. split_cl.py
  181. subcommand.py
  182. subprocess2.py
  183. testing_support/
  184. tests/
  185. third_party/
  186. update_depot_tools
  187. update_depot_tools.bat
  188. update_depot_tools_toggle.py
  189. upload_metrics.py
  190. upload_to_google_storage.py
  191. vpython
  192. vpython.bat
  193. vpython3
  194. vpython3.bat
  195. watchlists.py
  196. weekly
  197. win32imports.py
  198. win_toolchain/
  199. wtf
  200. yapf
  201. yapf.bat
  202. zsh-goodies/
README.md

depot_tools

Tools for working with Chromium development. It requires python 2.7 or 3.8 for python 3 support.

Tools

The most important tools are:

  • fetch: A gclient wrapper to checkout a project. Use fetch --help for more details.
  • gclient: A meta-checkout tool. Think repo or git submodules, except that it support OS-specific rules, e.g. do not checkout Windows only dependencies when checking out for Android. Use gclient help for more details and README.gclient.md.
  • git cl: A code review tool to interact with Rietveld or Gerrit. Use git cl help for more details and README.git-cl.md.
  • roll-dep: A gclient dependency management tool to submit a dep roll, updating a dependency to a newer revision.

There are a lot of git utilities included.

Updating

depot_tools updates itself automatically when running gclient tool. To disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0.

To update package manually, run update_depot_tools.bat on Windows, or ./update_depot_tools on Linux or Mac.

On Windows only, running gclient will install git and python.

Contributing

To contribute change for review:

git new-branch <somename>
# Hack
git add .
git commit -a -m "Fixes goat teleporting"
# find reviewers
git cl owners
git log -- <yourfiles>

# Request a review.
git cl upload -r reviewer1@chromium.org,reviewer2@chromium.org --send-mail

# Edit change description if needed.
git cl desc

# If change is approved, flag it to be committed.
git cl set-commit

# If change needs more work.
git rebase-update
...
git cl upload -t "Fixes goat teleporter destination to be Australia"

See also open bugs, open reviews, forum or report problems.

cpplint.py

Until 2018, our cpplint.py was a copy of the upstream version at https://github.com/google/styleguide/tree/gh-pages/cpplint. Unfortunately, that repository is not maintained any more. If you want to update cpplint.py in depot_tools, just upload a patch to do so. We will figure out a long-term strategy via issue https://crbug.com/916550.

Note that the cpplint.py here is also used by the Tricium analyzer, so if the cpplint.py here changes, we should also update the copy used there.