Няма описание

Garrett Beaty 7a9218d13f Enable searching starlark files with git gs. преди 1 година
bootstrap 32c1207c9e Reland "Upgrade python to 3.11" преди 1 година
fetch_configs f936d540e1 Remove __future__ imports преди 1 година
git-templates a7d7d7ec35 Explicitly exec hooks inside a shell. преди 12 години
hooks 03a1a8936e pre-commit: do not ignore submodule when running diff-index преди 1 година
infra 1be8112f4d Roll recipe dependencies (trivial). преди 1 година
man f936d540e1 Remove __future__ imports преди 1 година
metadata a83e690662 [ssci] Add condition on license field separator warning преди 1 година
python-bin 67702834cc cipd/python: optimize cat usage преди 2 години
python2-bin 67702834cc cipd/python: optimize cat usage преди 2 години
recipes 1be8112f4d Roll recipe dependencies (trivial). преди 1 година
testing_support 06c4261af7 tests: Use collections.abc.MutableSet преди 1 година
tests 32c1207c9e Reland "Upgrade python to 3.11" преди 1 година
third_party ee5d42b76a schema: pull LICENSE whitespace trim from upstream преди 1 година
win_toolchain f936d540e1 Remove __future__ imports преди 1 година
zsh-goodies 6e043f755b Remove unmaintained "gclient export" command, преди 14 години
.cipd_impl.ps1 02838e6f4e Import Get-FileHash from PowerShell's version specific path преди 2 години
.flake8 2ef0787c49 Add a config file for the flake8 linter. преди 1 година
.gitattributes c7aca34c8e Define main metadata validation functions преди 2 години
.gitignore aa65be9856 autoninja: cache negative result of gcloud account check преди 1 година
.isort.cfg 9a7b7675ba isort: make available to users преди 3 години
.style.yapf 124bb8e53c switch to 4 space indent преди 1 година
.vpython b1bfb8b4f0 Add explicit vpython verification tags which include mac-arm64. преди 4 години
.vpython3 32c1207c9e Reland "Upgrade python to 3.11" преди 1 година
BUILD_OWNERS 3ca8d0d0ca add siso wrapper преди 2 години
CROS_OWNERS de38174544 CROS_OWNERS: switch to our common shared lists преди 3 години
DIR_METADATA 364205c70e [depot_tools] Migrate metadata to DIR_METADATA. преди 4 години
LICENSE fb2b8eb2e2 Create the Next Generation of depot_tools. Eh. преди 16 години
LUCI_OWNERS e5d7ea3c01 add peep-software-deploy team to luci owners преди 1 година
OWNERS 96a5bc2c44 Refactor the depot_tools OWNERS file. преди 1 година
PRESUBMIT.py 124bb8e53c switch to 4 space indent преди 1 година
README.gclient.md 186449d3e7 docs: Removing references to SVN преди 9 години
README.git-cl.md 9c0dc3026e Replace non-inclusive terms преди 4 години
README.md 7f5b53ff8d Remove last py2 workarounds преди 1 година
RECLIENT_OWNERS 9e36ef60d0 Add convenience wrapper for reclientreport for autoninja users преди 2 години
WATCHLISTS bb27381a20 Update WATCHLISTS for ninja, siso and reclient changes преди 2 години
auth.py 4c1d6d90bc [auth] Be able to generate id_token преди 1 година
autoninja cccca95d8f Revert^2 "autoninja.py: disallow external account from corp machine" преди 1 година
autoninja.bat cccca95d8f Revert^2 "autoninja.py: disallow external account from corp machine" преди 1 година
autoninja.py aa65be9856 autoninja: cache negative result of gcloud account check преди 1 година
autosiso 5828285134 Deprecate autosiso.bat and autosiso. преди 1 година
autosiso.bat 5828285134 Deprecate autosiso.bat and autosiso. преди 1 година
autosiso.py 9ed72f91a9 [siso] Propagte SIGINT to siso process преди 1 година
bazel 6a505ad9ab [ChromiumOS] Add a launcher for Bazel преди 2 години
bazel.py 124bb8e53c switch to 4 space indent преди 1 година
bb 47a4b0bc59 Add revert instructions преди 4 години
bb.bat 47a4b0bc59 Add revert instructions преди 4 години
black 9997ceb9a1 black: add helper for formatting Python преди 3 години
bootstrap_python3 f7b9e70a2e Use relative path for cipd преди 2 години
breakpad.py 124bb8e53c switch to 4 space indent преди 1 година
cbuildbot 76c2e50d3b simplify the chromite wrappers преди 5 години
cipd d6f65bfa32 Revert "[cipd] Detect Mac ARM running under Rosetta" преди 2 години
cipd.bat ead9b43bd5 [cipd] Run cipd_impl.ps1 in constrained language mode преди 2 години
cipd_bin_setup.bat 93fbd989e0 Revert "Retry switching to use CIPD ninja v1.8.2" преди 3 години
cipd_bin_setup.sh 397276fe81 cipd_bin_setup: load cipd script instead of running it преди 2 години
cipd_client_version f06b6eee91 [auth]: Update CIPD to include version update of luci-auth change. преди 2 години
cipd_client_version.digests f06b6eee91 [auth]: Update CIPD to include version update of luci-auth change. преди 2 години
cipd_manifest.txt 305904f4ee [depot_tools] roll lucicfg to 1.43.1 преди 1 година
cipd_manifest.versions 305904f4ee [depot_tools] roll lucicfg to 1.43.1 преди 1 година
cipd_manifest_cros_python2.txt 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. преди 2 години
cipd_manifest_cros_python2.versions 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. преди 2 години
clang-format 3912091152 Use py3 for remaining tools in depot_tools path преди 4 години
clang-format.bat 3912091152 Use py3 for remaining tools in depot_tools path преди 4 години
clang_format.py f936d540e1 Remove __future__ imports преди 1 година
codereview.settings fdd89469d6 update stale codereview.chromium.org links преди 4 години
compile_single_file 3912091152 Use py3 for remaining tools in depot_tools path преди 4 години
compile_single_file.bat 3912091152 Use py3 for remaining tools in depot_tools path преди 4 години
compile_single_file.py 44d6d1a666 Fix compile_single_file with remoteexec преди 1 година
cpplint.bat 6a8680a80e Use python3 for cpplint and get_toolchain on Win преди 3 години
cpplint.py 124bb8e53c switch to 4 space indent преди 1 година
cpplint_chromium.py 124bb8e53c switch to 4 space indent преди 1 година
cros cd9f6dc4b1 cros: disable Python caches in citc checkouts преди 1 година
cros_python2.vpython 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. преди 2 години
cros_sdk 76c2e50d3b simplify the chromite wrappers преди 5 години
crosjobs 47a4b0bc59 Add revert instructions преди 4 години
detect_host_arch.py 8197d724a6 [detect_host_arch] Cache HostArch() function преди 1 година
dirmd 47a4b0bc59 Add revert instructions преди 4 години
dirmd.bat 47a4b0bc59 Add revert instructions преди 4 години
download_from_google_storage bc8802fd81 Switch download_from_google_storage to py3 преди 4 години
download_from_google_storage.bat 68df7954e3 use python3 for download_from_google_storage.bat преди 3 години
download_from_google_storage.py cd3fa0389e [download_from_google_storage] Add envvar for num_threads преди 1 година
ensure_bootstrap 248aa8ba81 setup & share path to depot_tools checkout преди 2 години
fetch 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
fetch.bat 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
fetch.py 88cc0b8ca8 Remove old Cog detection преди 1 година
fix_encoding.py f936d540e1 Remove __future__ imports преди 1 година
gclient 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
gclient-new-workdir.py 124bb8e53c switch to 4 space indent преди 1 година
gclient.bat 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
gclient.py 9c44fe5fca fix typo: director -> directory преди 1 година
gclient_completion.sh 2dca41cf70 Added basic completion (the commands) for gclient. преди 11 години
gclient_eval.py 7f5b53ff8d Remove last py2 workarounds преди 1 година
gclient_paths.py 6e8c18239d Cache values in gclient_paths.py преди 1 година
gclient_scm.py 259774c3ac [gclient_scm] Update _CheckClean() to use `git status` преди 1 година
gclient_utils.py 124bb8e53c switch to 4 space indent преди 1 година
gerrit ae46c3cecd Symlink gerrit CLI into depot_tools преди 2 години
gerrit_client.py 7f5b53ff8d Remove last py2 workarounds преди 1 година
gerrit_util.py 7f5b53ff8d Remove last py2 workarounds преди 1 година
git-cache 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-cl 11f4a84bb1 Add quotes around paths in bash scripts. преди 5 години
git-crrev-parse eee67fe5a5 Fix git-crrev-parse to work with both master & main branches преди 3 години
git-drover 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-find-releases 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-footers 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-freeze 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-gs 7a9218d13f Enable searching starlark files with git gs. преди 1 година
git-hyper-blame 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-map 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-map-branches 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-mark-merge-base 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-migrate-default-branch dfa44daef9 Add git-migrate-default-branch преди 4 години
git-nav-downstream 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-nav-upstream e989bb2b45 Make git-nav-upstream use the upstream branch name преди 6 години
git-new-branch 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-number 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-rebase-update 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-rename-branch 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-reparent-branch 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-retry 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-runhooks a59e9ea222 Revert "Remove unused functionality in bot_update.py" преди 3 години
git-squash-branch 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-thaw 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git-upstream-diff 648b4cd2ca Add quotes around paths in bash scripts преди 5 години
git_cache.py 124bb8e53c switch to 4 space indent преди 1 година
git_cl.py c90f05ebd3 [git cl]: Support --dependencies in new flow преди 1 година
git_cl_completion.sh cdaf0be1f4 Add git completion helper to cl upload преди 5 години
git_common.py 32e7363c50 git: tweak fsmonitor warning message to mention the git version fix преди 1 година
git_completion.sh 272e6ab3cb Bash autocompletion for 'git new-branch' and 'git reparent-branch' преди 1 година
git_dates.py 124bb8e53c switch to 4 space indent преди 1 година
git_drover.py 124bb8e53c switch to 4 space indent преди 1 година
git_find_releases.py 124bb8e53c switch to 4 space indent преди 1 година
git_footers.py 124bb8e53c switch to 4 space indent преди 1 година
git_freezer.py 124bb8e53c switch to 4 space indent преди 1 година
git_hyper_blame.py 124bb8e53c switch to 4 space indent преди 1 година
git_map.py 124bb8e53c switch to 4 space indent преди 1 година
git_map_branches.py 124bb8e53c switch to 4 space indent преди 1 година
git_mark_merge_base.py 124bb8e53c switch to 4 space indent преди 1 година
git_migrate_default_branch.py 124bb8e53c switch to 4 space indent преди 1 година
git_nav_downstream.py 124bb8e53c switch to 4 space indent преди 1 година
git_new_branch.py 124bb8e53c switch to 4 space indent преди 1 година
git_number.py 124bb8e53c switch to 4 space indent преди 1 година
git_rebase_update.py 124bb8e53c switch to 4 space indent преди 1 година
git_rename_branch.py 124bb8e53c switch to 4 space indent преди 1 година
git_reparent_branch.py 124bb8e53c switch to 4 space indent преди 1 година
git_retry.py 124bb8e53c switch to 4 space indent преди 1 година
git_squash_branch.py 124bb8e53c switch to 4 space indent преди 1 година
git_upstream_diff.py 124bb8e53c switch to 4 space indent преди 1 година
gn 67574d7a19 gn: Call gn.bat in msysgit on Windows. преди 4 години
gn.bat c70750b73e Revert "Call python3.bat explicitly from gn.bat on Windows." преди 3 години
gn.py f936d540e1 Remove __future__ imports преди 1 година
goma_auth a806594b95 Reland "Reland "use python3 for goma related scripts"" преди 4 години
goma_auth.bat df3228656a Set errorlevel in .bat wrappers on exit /b where appropriate. преди 3 години
goma_ctl 66a30a7e6d Skip goma on unsupported platforms преди 2 години
goma_ctl.bat 25334bb18e Handle goma_ctl/autoninja /? преди 2 години
gsutil.py a413ee7249 [gsutil.py] Skip luci-auth wrapper on unsupported platforms преди 1 година
gsutil.py.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." преди 3 години
gsutil.vpython3 1909696991 Reland "Update gsutil to use gsutil version 4.68" преди 3 години
infra_to_superproject 4a2243196c Use shutil.copytree instead for migration script instead. преди 2 години
infra_to_superproject.bat 4a2243196c Use shutil.copytree instead for migration script instead. преди 2 години
infra_to_superproject.py 124bb8e53c switch to 4 space indent преди 1 година
isort 124bb8e53c switch to 4 space indent преди 1 година
led 47a4b0bc59 Add revert instructions преди 4 години
led.bat 47a4b0bc59 Add revert instructions преди 4 години
lockfile.py f936d540e1 Remove __future__ imports преди 1 година
luci-auth 47a4b0bc59 Add revert instructions преди 4 години
luci-auth.bat 47a4b0bc59 Add revert instructions преди 4 години
lucicfg 47a4b0bc59 Add revert instructions преди 4 години
lucicfg.bat 47a4b0bc59 Add revert instructions преди 4 години
mac_toolchain 059f26bcb4 do not hardcode the path to bash by using the #!/usr/bin/env bash shebang преди 6 години
metrics.README.md 9c0dc3026e Replace non-inclusive terms преди 4 години
metrics.py f936d540e1 Remove __future__ imports преди 1 година
metrics_utils.py f936d540e1 Remove __future__ imports преди 1 година
my_activity.py f936d540e1 Remove __future__ imports преди 1 година
ninja c768fd8fc9 Revert "Use depot_tools python3 to call ninja.py" преди 2 години
ninja.bat 2b1aa8dcab Add single file compile support for Windows in ninja wrappers преди 2 години
ninja.py df3e577855 apply black and `git cl format` for ninja related python files преди 1 година
ninja_reclient.py df3e577855 apply black and `git cl format` for ninja related python files преди 1 година
ninjalog.README.md a657331e90 ninjalog_uploader: use goma_auth to detect googler преди 3 години
ninjalog_uploader.py b5393e57bb ninjalog_uploader.py: use cipd to check authenticated account преди 1 година
ninjalog_uploader_wrapper.py df3e577855 apply black and `git cl format` for ninja related python files преди 1 година
owners_client.py 124bb8e53c switch to 4 space indent преди 1 година
owners_finder.py f936d540e1 Remove __future__ imports преди 1 година
pinpoint 47a4b0bc59 Add revert instructions преди 4 години
pinpoint.bat 47a4b0bc59 Add revert instructions преди 4 години
post_build_ninja_summary.py 8efb05d3d4 check `siso summary` преди 1 година
presubmit_canned_checks.py f2f8be1ca8 [pylint] Use correct variable name преди 1 година
presubmit_support.py 7f22330c69 Make rdb status calculation reusable преди 1 година
profile.xml fb2b8eb2e2 Create the Next Generation of depot_tools. Eh. преди 16 години
prpc 47a4b0bc59 Add revert instructions преди 4 години
prpc.bat 47a4b0bc59 Add revert instructions преди 4 години
pylint-2.17 a52cc055e4 pylint: Add pylint 2.17 преди 1 година
pylint-2.17.bat a52cc055e4 pylint: Add pylint 2.17 преди 1 година
pylint-2.6 124bb8e53c switch to 4 space indent преди 1 година
pylint-2.6.bat d60b99cd5a Get pylint-2.6 to work under vpython3 on Windows. преди 4 години
pylint-2.7 124bb8e53c switch to 4 space indent преди 1 година
pylint-2.7.bat 59e3296a7e Add pylint-2.7 преди 3 години
pylint_main.py f936d540e1 Remove __future__ imports преди 1 година
pylintrc 0985861970 CodeInclusion: Rename whitelist/blacklist -> allowlist/blocklist преди 5 години
pylintrc-2.17 a52cc055e4 pylint: Add pylint 2.17 преди 1 година
python_runner.sh 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
rdb 47a4b0bc59 Add revert instructions преди 4 години
rdb.bat 47a4b0bc59 Add revert instructions преди 4 години
rdb_wrapper.py 124bb8e53c switch to 4 space indent преди 1 година
reclient_helper.py 8d97b6d89b Add mac-specific reclient tweak. преди 1 година
reclient_metrics bb109cd7c3 Add reclient_metrics command преди 2 години
reclient_metrics.README.md 82e4859614 [reclient] Update reclient_metrics.README.md to reflect that we collect googler hostnames преди 2 години
reclient_metrics.bat bb109cd7c3 Add reclient_metrics command преди 2 години
reclient_metrics.py 124bb8e53c switch to 4 space indent преди 1 година
reclientreport 9e36ef60d0 Add convenience wrapper for reclientreport for autoninja users преди 2 години
reclientreport.bat 522e12caff Remove unnesisary quotes from propagated args in reclientreport.bat преди 2 години
reclientreport.py 27ea34f94e [reclient] Keep previous 5 builds worth of logs преди 1 година
repo 124bb8e53c switch to 4 space indent преди 1 година
repo_launcher fd6e527668 repo_launcher: sync to v2.39 преди 1 година
roll-dep 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
roll-dep.bat 06001cda91 [py2] Drop envvar to run scripts with py2 преди 2 години
roll_dep.py f936d540e1 Remove __future__ imports преди 1 година
rustfmt.py 124bb8e53c switch to 4 space indent преди 1 година
scm.py 4cf6518959 scm: Remove usage of distutil преди 1 година
setup_color.py f936d540e1 Remove __future__ imports преди 1 година
siso 3ca8d0d0ca add siso wrapper преди 2 години
siso.bat 3ca8d0d0ca add siso wrapper преди 2 години
siso.py 9ed72f91a9 [siso] Propagte SIGINT to siso process преди 1 година
split_cl.py f936d540e1 Remove __future__ imports преди 1 година
subcommand.py 124bb8e53c switch to 4 space indent преди 1 година
subprocess2.py 124bb8e53c switch to 4 space indent преди 1 година
swift-format 0a6b544e20 Support git cl formatting for swift files преди 3 години
swift_format.py 124bb8e53c switch to 4 space indent преди 1 година
update_depot_tools 248aa8ba81 setup & share path to depot_tools checkout преди 2 години
update_depot_tools.bat 44c05276d7 Call goma_ctl update_hook only after python3 is bootstrapped. преди 2 години
update_depot_tools_toggle.py 124bb8e53c switch to 4 space indent преди 1 година
upload_metrics.py 124bb8e53c switch to 4 space indent преди 1 година
upload_to_google_storage.py f936d540e1 Remove __future__ imports преди 1 година
utils.py 124bb8e53c switch to 4 space indent преди 1 година
vpython f90cc29837 vpython: clear DEPOT_TOOLS_DIR before running scripts преди 2 години
vpython.bat b6cb9e0b9a Remove Python 2 support for presubmit Commands преди 2 години
vpython3 f90cc29837 vpython: clear DEPOT_TOOLS_DIR before running scripts преди 2 години
vpython3.bat 8d81365cf0 Use the bundled interpreter instead of passing -vpython-interpreter. преди 3 години
watchlists.py f936d540e1 Remove __future__ imports преди 1 година
weekly f936d540e1 Remove __future__ imports преди 1 година
whitespace.txt 74e3d80019 Change whitespace.txt преди 4 години
win32imports.py 124bb8e53c switch to 4 space indent преди 1 година
wtf f936d540e1 Remove __future__ imports преди 1 година
yapf f8cab106a4 Update vpython spec for yapf to 0.31.0 преди 2 години
yapf.bat d73d069a76 Run yapf with vpython3 преди 4 години

README.gclient.md

gclient

gclient is a tool for managing a modular checkout of source code from multiple source code repositories. It wraps underlying source code management commands to provide support for distributing tree updates, status commands, and diffs across multiple checked-out working directories.

The gclient script is controlled by a .gclient file at the top of a directory tree which will contain source code from multiple locations. A .gclient file is a Python script that defines a list of solutions with the following format:

solutions = [
  { "name"        : "src",
    "url"         : "https://chromium.googlesource.com/chromium/src.git",
    "custom_deps" : {
      # To use the trunk of a component instead of what's in DEPS:
      #"component": "https://github.com/luci/luci-go",
      # To exclude a component from your working copy:
      #"data/really_large_component": None,
    }
  },
]

A solution is a collection of component pieces of software that will be checked out in a specific directory layout for building together.

Each entry in the solutions list is defined by a Python dictionary that contains the following items:

  • name: The name of the directory in which the solution will be checked out.
  • url: The URL from which this solution will be checked out. gclient expects that the checked-out solution will contain a file named DEPS that in turn defines the specific pieces that must be checked out to create the working directory layout for building and developing the solution's software.
  • deps_file: A string containing just the filename (not a path) of the file in the solution dir to use as the list of dependencies. This tag is optional, and defaults to DEPS.
  • custom_deps: A dictionary containing optional custom overrides for entries in the solution's DEPS file. This can be used to have the local working directory not check out and update specific components, or to sync the local working-directory copy of a given component to a different specific revision, or a branch, or the head of a tree. It can also be used to append new entries that do not exist in the DEPS file.

Within each checked-out solution, gclient expects to find a file typically named DEPS (it actually uses the value of the deps_file key above) which defines the different component pieces of software that must be checked out for the solution. The DEPS file is a Python script that defines a dictionary named deps:

deps = {
  "src/outside": "https://outside-server/one/repo.git@12345677890123456778901234567789012345677890",
  "src/component": "https://dont-use-github.com/its/unreliable.git@0000000000000000000000000000000000000000",
  "src/relative": "/another/repo.git@aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
}

Each item in the deps dictionary consists of a key-value pair. The key is the directory into which the component will be checked out, relative to the directory containing the .gclient file. The value is the URL from which that directory will be checked out. If there is no address scheme (that is, no http: prefix), then the value must begin with a slash and is treated relative to the root of the solution's repository.

The URL typically contains a specific revision or change number (as appropriate for the underlying SCM system) to freeze the external software at a specific, known state. Alternatively, if there is no revision or change number, the URL will track the latest changes on the specific trunk or branch.