This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.
The build that created this CL was
https://ci.chromium.org/b/8699461038137863041
recipe_engine:
|
1 week ago | |
|---|---|---|
| bootstrap | 9 months ago | |
| fetch_configs | 4 weeks ago | |
| hooks | 2 years ago | |
| infra | 1 week ago | |
| infra_lib/telemetry | 4 months ago | |
| man | 3 months ago | |
| mcp | 3 months ago | |
| metadata | 4 weeks ago | |
| python-bin | 6 months ago | |
| python2-bin | 3 years ago | |
| recipes | 1 week ago | |
| testing_support | 9 months ago | |
| tests | 2 weeks ago | |
| third_party | 2 months ago | |
| win_toolchain | 4 months ago | |
| zsh-goodies | 15 years ago | |
| .cipd_impl.ps1 | 11 months ago | |
| .flake8 | 2 years ago | |
| .git-blame-ignore-revs | 1 year ago | |
| .gitattributes | 2 weeks ago | |
| .gitignore | 1 year ago | |
| .isort.cfg | 4 years ago | |
| .style.yapf | 2 years ago | |
| .vpython3 | 3 months ago | |
| BUILD_OWNERS | 3 years ago | |
| CROS_OWNERS | 3 years ago | |
| DIR_METADATA | 2 months ago | |
| LICENSE | 17 years ago | |
| LUCI_OWNERS | 2 years ago | |
| OWNERS | 1 month ago | |
| PRESUBMIT.py | 3 months ago | |
| README.gclient.md | 9 years ago | |
| README.git-cl.md | 5 years ago | |
| README.google_cloud_storage.md | 8 months ago | |
| README.md | 2 weeks ago | |
| RECLIENT_OWNERS | 3 years ago | |
| WATCHLISTS | 2 years ago | |
| android_build_server_helper.py | 7 months ago | |
| auth.py | 2 weeks ago | |
| autoninja | 4 weeks ago | |
| autoninja.bat | 1 year ago | |
| autoninja.py | 2 weeks ago | |
| bazel | 2 years ago | |
| bazel.py | 2 years ago | |
| bb | 1 year ago | |
| bb.bat | 5 years ago | |
| black | 4 years ago | |
| bootstrap_python3 | 3 years ago | |
| breakpad.py | 2 years ago | |
| build_telemetry | 1 year ago | |
| build_telemetry.bat | 1 year ago | |
| build_telemetry.py | 1 year ago | |
| caffeinate.py | 5 months ago | |
| cbuildbot | 6 years ago | |
| cipd | 4 months ago | |
| cipd.bat | 4 months ago | |
| cipd_bin_setup.bat | 3 years ago | |
| cipd_bin_setup.sh | 5 months ago | |
| cipd_client_version | 1 year ago | |
| cipd_client_version.digests | 1 year ago | |
| cipd_manifest.txt | 2 weeks ago | |
| cipd_manifest.versions | 2 weeks ago | |
| cipd_manifest_cros_python2.txt | 2 years ago | |
| cipd_manifest_cros_python2.versions | 3 years ago | |
| clang-format | 4 years ago | |
| clang-format.bat | 4 years ago | |
| clang_format.py | 3 months ago | |
| codereview.settings | 5 years ago | |
| compile_single_file | 2 years ago | |
| compile_single_file.bat | 2 years ago | |
| compile_single_file.py | 2 years ago | |
| cpplint.bat | 4 years ago | |
| cpplint.py | 7 months ago | |
| cpplint_chromium.py | 2 years ago | |
| create_temp_file.py | 4 months ago | |
| cros | 10 months ago | |
| cros_python2.vpython | 3 years ago | |
| cros_sdk | 6 years ago | |
| detect_host_arch.py | 4 months ago | |
| dirmd | 1 year ago | |
| dirmd.bat | 5 years ago | |
| download_from_google_storage | 5 years ago | |
| download_from_google_storage.bat | 4 years ago | |
| download_from_google_storage.py | 7 months ago | |
| ensure_bootstrap | 10 months ago | |
| fetch | 3 years ago | |
| fetch.bat | 3 years ago | |
| fetch.py | 1 year ago | |
| gclient | 3 years ago | |
| gclient-new-workdir.py | 1 year ago | |
| gclient.bat | 3 years ago | |
| gclient.py | 4 weeks ago | |
| gclient_completion.sh | 12 years ago | |
| gclient_eval.py | 1 year ago | |
| gclient_paths.py | 2 weeks ago | |
| gclient_scm.py | 1 month ago | |
| gclient_utils.py | 7 months ago | |
| gerrit | 3 years ago | |
| gerrit_client.py | 4 months ago | |
| gerrit_util.py | 2 weeks ago | |
| git-cache | 6 years ago | |
| git-cl | 6 years ago | |
| git-credential-luci | 7 months ago | |
| git-credential-luci.bat | 1 year ago | |
| git-crrev-parse | 4 years ago | |
| git-drover | 6 years ago | |
| git-find-releases | 6 years ago | |
| git-footers | 6 years ago | |
| git-freeze | 6 years ago | |
| git-gs | 2 years ago | |
| git-hyper-blame | 6 years ago | |
| git-map | 6 years ago | |
| git-map-branches | 6 years ago | |
| git-mark-merge-base | 6 years ago | |
| git-nav-downstream | 6 years ago | |
| git-nav-upstream | 2 years ago | |
| git-new-branch | 6 years ago | |
| git-number | 6 years ago | |
| git-rebase-update | 6 years ago | |
| git-rename-branch | 6 years ago | |
| git-reparent-branch | 6 years ago | |
| git-retry | 6 years ago | |
| git-runhooks | 4 years ago | |
| git-squash-branch | 6 years ago | |
| git-squash-branch-tree | 1 year ago | |
| git-thaw | 6 years ago | |
| git-upstream-diff | 6 years ago | |
| git_auth.py | 2 weeks ago | |
| git_cache.py | 1 month ago | |
| git_cl.py | 2 weeks ago | |
| git_cl_completion.sh | 6 years ago | |
| git_common.py | 2 weeks ago | |
| git_completion.sh | 2 years ago | |
| git_dates.py | 2 years ago | |
| git_find_releases.py | 2 years ago | |
| git_footers.py | 11 months ago | |
| git_freezer.py | 2 years ago | |
| git_hyper_blame.py | 1 year ago | |
| git_map.py | 2 years ago | |
| git_map_branches.py | 8 months ago | |
| git_mark_merge_base.py | 2 years ago | |
| git_nav_downstream.py | 2 years ago | |
| git_new_branch.py | 1 year ago | |
| git_number.py | 1 year ago | |
| git_rebase_update.py | 9 months ago | |
| git_rename_branch.py | 2 years ago | |
| git_reparent_branch.py | 2 years ago | |
| git_retry.py | 2 years ago | |
| git_squash_branch.py | 9 months ago | |
| git_squash_branch_tree.py | 9 months ago | |
| git_upstream_diff.py | 2 years ago | |
| gn | 6 months ago | |
| gn.bat | 6 months ago | |
| gn.py | 3 months ago | |
| gn_helper.py | 9 months ago | |
| google-java-format | 2 years ago | |
| google-java-format.bat | 2 years ago | |
| google_java_format.py | 2 weeks ago | |
| gsutil.py | 2 weeks ago | |
| gsutil.py.bat | 3 years ago | |
| gsutil.py.vpython3 | 2 weeks ago | |
| isort | 2 years ago | |
| led | 1 year ago | |
| led.bat | 5 years ago | |
| lockfile.py | 7 months ago | |
| luci-auth | 1 year ago | |
| luci-auth-fido2-plugin | 3 months ago | |
| luci-auth-fido2-plugin.bat | 3 months ago | |
| luci-auth-ssh-helper | 3 months ago | |
| luci-auth-ssh-helper.bat | 3 months ago | |
| luci-auth-ssh-plugin | 3 months ago | |
| luci-auth-ssh-plugin.bat | 3 months ago | |
| luci-auth.bat | 5 years ago | |
| luci_auth_fido2_plugin.py | 1 month ago | |
| lucicfg | 1 year ago | |
| lucicfg.bat | 5 years ago | |
| mac_toolchain | 1 year ago | |
| metrics-xml-format | 11 months ago | |
| metrics.README.md | 1 year ago | |
| metrics.py | 1 year ago | |
| metrics_utils.py | 1 year ago | |
| metrics_xml_format.py | 4 months ago | |
| my_activity.py | 11 months ago | |
| newauth.py | 7 months ago | |
| ninja | 3 years ago | |
| ninja.bat | 3 years ago | |
| ninja.py | 1 month ago | |
| ninjalog_uploader.py | 1 month ago | |
| owners_client.py | 8 months ago | |
| owners_finder.py | 2 years ago | |
| pinpoint | 1 year ago | |
| pinpoint.bat | 5 years ago | |
| post_build_ninja_summary.py | 9 months ago | |
| presubmit_canned_checks.py | 2 weeks ago | |
| presubmit_diff.py | 10 months ago | |
| presubmit_support.py | 2 weeks ago | |
| prpc | 1 year ago | |
| prpc.bat | 5 years ago | |
| pylint-2.6 | 2 years ago | |
| pylint-2.6.bat | 4 years ago | |
| pylint-2.7 | 2 years ago | |
| pylint-2.7.bat | 4 years ago | |
| pylint-2.17 | 2 years ago | |
| pylint-2.17.bat | 2 years ago | |
| pylint-3.2 | 10 months ago | |
| pylint-3.2.bat | 10 months ago | |
| pylint_main.py | 10 months ago | |
| pylintrc-2.6 | 10 months ago | |
| pylintrc-2.7 | 10 months ago | |
| pylintrc-2.17 | 10 months ago | |
| pylintrc-3.2 | 10 months ago | |
| pyproject.toml | 2 weeks ago | |
| python_runner.sh | 3 years ago | |
| rdb | 1 year ago | |
| rdb.bat | 5 years ago | |
| rdb_wrapper.py | 2 years ago | |
| reclient_helper.py | 4 months ago | |
| reclientreport | 3 years ago | |
| reclientreport.bat | 2 years ago | |
| reclientreport.py | 2 years ago | |
| repo | 1 year ago | |
| repo_launcher | 3 months ago | |
| roll-dep | 3 years ago | |
| roll-dep.bat | 3 years ago | |
| roll_dep.py | 2 months ago | |
| roll_downstream_gcs_deps.py | 1 year ago | |
| rustfmt.py | 2 years ago | |
| scm.py | 2 months ago | |
| setup_color.py | 2 years ago | |
| siso | 8 months ago | |
| siso.bat | 8 months ago | |
| siso.py | 4 weeks ago | |
| split_cl.py | 6 months ago | |
| subcommand.py | 6 months ago | |
| subprocess2.py | 2 years ago | |
| swift-format | 4 years ago | |
| swift_format.py | 2 years ago | |
| update_depot_tools | 10 months ago | |
| update_depot_tools.bat | 9 months ago | |
| update_depot_tools_toggle.py | 2 years ago | |
| upload_metrics.py | 2 years ago | |
| upload_to_google_storage.py | 1 year ago | |
| upload_to_google_storage_first_class.py | 3 weeks ago | |
| utils.py | 1 year ago | |
| vpython3 | 1 year ago | |
| vpython3.bat | 3 years ago | |
| watchlists.py | 2 years ago | |
| whitespace.txt | 5 years ago | |
| win32imports.py | 2 years ago | |
| yapf | 2 years ago | |
| yapf.bat | 5 years ago | |
README.md
depot_tools
Tools for Chromium development. Requires Python 3.8+.
gsutil: Python 3.9–3.13 required.
Tools
The most important tools are:
fetch: Agclientwrapper to checkout a project. Usefetch --helpfor 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. Usegclient helpfor more details and README.gclient.md.git cl: A code review tool to interact with Rietveld or Gerrit. Usegit cl helpfor 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.
Also, includes shell script/batch file for tools required to build chromium, e.g.
gn: a meta-build system that generates build files for Ninjaautoninja: a wrapper forsisoandninja.siso: a build tool that aims to significantly speed up Chromium's build.ninja: a small build system with a focus on speed. deprecated by Siso.
These shell script/batch file runs python script with python-bin/python3
that find binaries in chromium checkout, and run with proper setup/check.
To use these wrappers, you need to initialize/bootstrap depot_tools (using
gclient, update_depot_tools or ensure_bootstrap).
Installing
See set-up documentation.
depot_tools is also available in
-
chromium's third_party/depot_tools: propagated by autoroller.
-
on builder: infra_internal/recipe_bundles/chrome-internal.googlesource.com/chrome/tools/build bundles depot_tools. propagated by build_internal recipe roller
These depot_tools would not be initialized/bootstrapped (i.e. no
python-bin/python3 binary available), so the build tool wrapper won't work,
unless it is explicitly initialized by ensure_bootstrap.
Or, directly call the python script instead of using the shell script/batch
file.
Updating
depot_tools updates itself automatically when running gclient tool. To
disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0 or
run ./update_depot_tools_toggle.py --disable.
To update package manually, run update_depot_tools.bat on Windows,
or ./update_depot_tools on Linux or Mac.
Running gclient will install python3 binary.
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.