Ingen beskrivning

Junji Watanabe 2b1aa8dcab Add single file compile support for Windows in ninja wrappers 2 år sedan
bootstrap 44b73307ee ensure depot_tools and cipd can bootstrap on all windows paths 3 år sedan
fetch_configs 164e33529e Add a fetch config for GN. 3 år sedan
git-templates a7d7d7ec35 Explicitly exec hooks inside a shell. 12 år sedan
infra 5b0c934026 Roll recipe dependencies (trivial). 2 år sedan
man 8d2f774038 Use py3 in documentation generation 3 år sedan
python-bin 8d727180be Add python batch wrappers 4 år sedan
python2-bin 8d727180be Add python batch wrappers 4 år sedan
recipes 5b0c934026 Roll recipe dependencies (trivial). 2 år sedan
testing_support d83509c0c3 Move presubmit_canned_checks tests under tests/ and fix 2 år sedan
tests 624e7eec34 Change working directory to PRESUBMIT's dir also for postsubmit 2 år sedan
third_party c6798c8989 [depot tools] Update six version. 3 år sedan
win_toolchain 0115386a26 Switch from VS 2017/2019 support to VS 2019/2022 2 år sedan
zsh-goodies 6e043f755b Remove unmaintained "gclient export" command, 14 år sedan
.cipd_impl.ps1 f15a709ff3 Try removing windows-386 from cipd_manifest.txt 4 år sedan
.gitattributes b6030901cf Setup cipd bin before calling ninja/autoninja 3 år sedan
.gitignore 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
.isort.cfg 9a7b7675ba isort: make available to users 3 år sedan
.style.yapf fa40bfa39b Update "git cl format --python" to default to PEP-8 5 år sedan
.vpython b1bfb8b4f0 Add explicit vpython verification tags which include mac-arm64. 4 år sedan
.vpython3 274ada0567 Reland "Use py3 in gitiles recipe module" 3 år sedan
CROS_OWNERS de38174544 CROS_OWNERS: switch to our common shared lists 3 år sedan
DIR_METADATA 364205c70e [depot_tools] Migrate metadata to DIR_METADATA. 4 år sedan
GOMA_OWNERS 4e0cca2a31 Update GOMA_OWNERS 3 år sedan
LICENSE fb2b8eb2e2 Create the Next Generation of depot_tools. Eh. 16 år sedan
LUCI_OWNERS 376ce660a5 Remove tandrii@ from OWNERS under depot_tools 3 år sedan
OWNERS 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
PRESUBMIT.py 95c7da10c5 Only run selected tests on py2 2 år sedan
README.gclient.md 186449d3e7 docs: Removing references to SVN 9 år sedan
README.git-cl.md 9c0dc3026e Replace non-inclusive terms 4 år sedan
README.md 64f5f26f1a Indicate py3 compatibility for update_depot_tools_toggle.py 3 år sedan
WATCHLISTS 59e6796cd2 Update Source team WATCHLIST entry. 3 år sedan
auth.py 0f402641d0 [auth] log errors from luci-auth token invocation. 4 år sedan
autoninja 10898d51d1 [autoninja] Respect user-provided AUTONINJA_BUILD_ID 3 år sedan
autoninja.bat 25334bb18e Handle goma_ctl/autoninja /? 2 år sedan
autoninja.py ad452a7204 Fix autoninja to call ninja.py 2 år sedan
bb 47a4b0bc59 Add revert instructions 4 år sedan
bb.bat 47a4b0bc59 Add revert instructions 4 år sedan
black 9997ceb9a1 black: add helper for formatting Python 3 år sedan
bootstrap_python3 3a56ba9d9c [mac/arm] pull python3 binary in cipd bootstrap now that it exists 4 år sedan
breakpad.py dc58a97f02 Finally get rid of depot_tools' breakpad. 9 år sedan
cbuildbot 76c2e50d3b simplify the chromite wrappers 5 år sedan
cipd d9db3f6fd8 Add arch flag and env variable for overriding on mac 2 år sedan
cipd.bat 44b73307ee ensure depot_tools and cipd can bootstrap on all windows paths 3 år sedan
cipd_bin_setup.bat 93fbd989e0 Revert "Retry switching to use CIPD ninja v1.8.2" 3 år sedan
cipd_bin_setup.sh a0aed87f71 Revert "put goma client in depot_tools" 5 år sedan
cipd_client_version f53bb836de [cipd] Update CIPD client v2.6.7 => v2.6.8. 3 år sedan
cipd_client_version.digests f53bb836de [cipd] Update CIPD client v2.6.7 => v2.6.8. 3 år sedan
cipd_manifest.txt dcb79c7080 [depot_tools] roll dirmd 2 år sedan
cipd_manifest.versions dcb79c7080 [depot_tools] roll dirmd 2 år sedan
cipd_manifest_cros_python2.txt 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
cipd_manifest_cros_python2.versions 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
cit 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
cit.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
cit.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
clang-format 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang-format.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang_format.py a964ca1296 clang-format: lookup for binary under third_party/clang-format 2 år sedan
clang_format_merge_driver 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang_format_merge_driver.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
clang_format_merge_driver.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
codereview.settings fdd89469d6 update stale codereview.chromium.org links 4 år sedan
compile_single_file 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
compile_single_file.bat 3912091152 Use py3 for remaining tools in depot_tools path 4 år sedan
compile_single_file.py fc04ff1628 Call ninja.py from compile_single_file.py 2 år sedan
cpplint.bat 6a8680a80e Use python3 for cpplint and get_toolchain on Win 3 år sedan
cpplint.py e6f3d66bae Fix bad regex. 2 år sedan
cpplint_chromium.py 8b8d8bef35 Add lint check against "Foo *bar" and "Foo &bar" declarations. 14 år sedan
cros 50985d5fdd Don't run cipd from depot_tools, it lives in a different location on Swarming. 2 år sedan
cros_python2.vpython 252b19866a Redirect cros calls to py2.7 scripts to the vpython2.7 package. 2 år sedan
cros_sdk 76c2e50d3b simplify the chromite wrappers 5 år sedan
crosjobs 47a4b0bc59 Add revert instructions 4 år sedan
detect_host_arch.py eb16162e00 Add riscv64 architecture detection 3 år sedan
dirmd 47a4b0bc59 Add revert instructions 4 år sedan
dirmd.bat 47a4b0bc59 Add revert instructions 4 år sedan
download_from_google_storage bc8802fd81 Switch download_from_google_storage to py3 4 år sedan
download_from_google_storage.bat 68df7954e3 use python3 for download_from_google_storage.bat 3 år sedan
download_from_google_storage.py 50c631e318 Skip 'ls' when downloading from gs. 3 år sedan
ensure_bootstrap ba94bbeaa8 Use python3 for gsutil bootstrapping 3 år sedan
fetch c621315d17 Make Python 3 default on Windows 5 år sedan
fetch.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
fetch.py 512dfd676b fetch: make --no-history and --no-hooks switches consistent 2 år sedan
fix_encoding.py 00790d319f Fix \r\r\n line endings in presubmit output 3 år sedan
gclient c0169f32a3 Skip depot_tools update for gclient recurse 3 år sedan
gclient-new-workdir.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
gclient.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
gclient.py 1b8211ff13 Restore git files that may be deleted by CIPD 2 år sedan
gclient_completion.sh 2dca41cf70 Added basic completion (the commands) for gclient. 11 år sedan
gclient_eval.py 03af44a516 Fix roll-dep commit message on Windows and add suggestions 2 år sedan
gclient_paths.py b888780d17 Change FindGclientRoot to Use os.path.abspath instead of os.path.realpath 4 år sedan
gclient_scm.py 738b48a0bf Avoid full fetches with gclient sync --no-history 2 år sedan
gclient_utils.py 38d669fe6f Reduce retries in gclient_utils 3 år sedan
gerrit_client.py 91d2a5db01 Allow to pass CC list when create a gerrit change 3 år sedan
gerrit_util.py e0fee9fa4b Add BatchListBestOwners and ListBestOwners to GerritClient 3 år sedan
git-cache 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-cl 11f4a84bb1 Add quotes around paths in bash scripts. 5 år sedan
git-crrev-parse eee67fe5a5 Fix git-crrev-parse to work with both master & main branches 3 år sedan
git-drover 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-find-releases 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-footers 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-freeze 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-gs 7f02c0d981 Add *.ts (typescript files) to git-gs 3 år sedan
git-hyper-blame 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-map 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-map-branches 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-mark-merge-base 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-migrate-default-branch dfa44daef9 Add git-migrate-default-branch 4 år sedan
git-nav-downstream 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-nav-upstream e989bb2b45 Make git-nav-upstream use the upstream branch name 6 år sedan
git-new-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-number 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-rebase-update 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-rename-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-reparent-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-retry 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-runhooks a59e9ea222 Revert "Remove unused functionality in bot_update.py" 3 år sedan
git-squash-branch 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-thaw 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git-upstream-diff 648b4cd2ca Add quotes around paths in bash scripts 5 år sedan
git_cache.py 5175d18f8a Remove branch option from git cache update-bootstrap. 2 år sedan
git_cl.py 6f905470df Print overview of external changes 2 år sedan
git_cl_completion.sh cdaf0be1f4 Add git completion helper to cl upload 5 år sedan
git_common.py 6f2321d1de Speed up git thaw 2 år sedan
git_dates.py 819375653b Added git hyper-blame, a tool that skips unwanted commits in git blame. 9 år sedan
git_drover.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_find_releases.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_footers.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_freezer.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_hyper_blame.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_map.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_map_branches.py a2658217d2 git-map-branches: Fix --show-subject for branches that are gone 2 år sedan
git_mark_merge_base.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_migrate_default_branch.py c08f84e782 Update git fetch refspecs on git migrate 3 år sedan
git_nav_downstream.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_new_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_number.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
git_rebase_update.py 9a6aa08468 Suggest --no-fetch flag after git rebase-update conflict 2 år sedan
git_rename_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_reparent_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_retry.py 0959bb1c2a Fix git-retry on errors 3 år sedan
git_squash_branch.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
git_upstream_diff.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
gn 67574d7a19 gn: Call gn.bat in msysgit on Windows. 4 år sedan
gn.bat c70750b73e Revert "Call python3.bat explicitly from gn.bat on Windows." 3 år sedan
gn.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
goma_auth a806594b95 Reland "Reland "use python3 for goma related scripts"" 4 år sedan
goma_auth.bat df3228656a Set errorlevel in .bat wrappers on exit /b where appropriate. 3 år sedan
goma_ctl a806594b95 Reland "Reland "use python3 for goma related scripts"" 4 år sedan
goma_ctl.bat 25334bb18e Handle goma_ctl/autoninja /? 2 år sedan
gsutil.py 7af6169852 Update gsutil.py to use luci-auth for authentication 2 år sedan
gsutil.py.bat 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
gsutil.vpython3 1909696991 Reland "Update gsutil to use gsutil version 4.68" 3 år sedan
isort 9a7b7675ba isort: make available to users 3 år sedan
led 47a4b0bc59 Add revert instructions 4 år sedan
led.bat 47a4b0bc59 Add revert instructions 4 år sedan
lockfile.py 14a83aec56 Reland "Use OS level locking in git_cache.py" 5 år sedan
luci-auth 47a4b0bc59 Add revert instructions 4 år sedan
luci-auth.bat 47a4b0bc59 Add revert instructions 4 år sedan
lucicfg 47a4b0bc59 Add revert instructions 4 år sedan
lucicfg.bat 47a4b0bc59 Add revert instructions 4 år sedan
mac_toolchain 059f26bcb4 do not hardcode the path to bash by using the #!/usr/bin/env bash shebang 6 år sedan
metrics.README.md 9c0dc3026e Replace non-inclusive terms 4 år sedan
metrics.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
metrics_utils.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
my_activity.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
ninja c768fd8fc9 Revert "Use depot_tools python3 to call ninja.py" 2 år sedan
ninja-linux64 93fbd989e0 Revert "Retry switching to use CIPD ninja v1.8.2" 3 år sedan
ninja-mac 93fbd989e0 Revert "Retry switching to use CIPD ninja v1.8.2" 3 år sedan
ninja.bat 2b1aa8dcab Add single file compile support for Windows in ninja wrappers 2 år sedan
ninja.exe 93fbd989e0 Revert "Retry switching to use CIPD ninja v1.8.2" 3 år sedan
ninja.py 2b1aa8dcab Add single file compile support for Windows in ninja wrappers 2 år sedan
ninjalog.README.md a657331e90 ninjalog_uploader: use goma_auth to detect googler 3 år sedan
ninjalog_uploader.py 4ee32ce4cb [ninjalog uploader] Collect more android GN args 3 år sedan
ninjalog_uploader_wrapper.py cf9a776713 Typo when countdown is more than 1. 3 år sedan
owners_client.py 0f1addcbe9 Reland "Remove old DepotToolsOwners implementation" 2 år sedan
owners_finder.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
pinpoint 47a4b0bc59 Add revert instructions 4 år sedan
pinpoint.bat 47a4b0bc59 Add revert instructions 4 år sedan
post_build_ninja_summary.py 1f51102073 post_build_ninja_summary.py: chmod u+x 2 år sedan
presubmit_canned_checks.py d83509c0c3 Move presubmit_canned_checks tests under tests/ and fix 2 år sedan
presubmit_support.py 624e7eec34 Change working directory to PRESUBMIT's dir also for postsubmit 2 år sedan
profile.xml fb2b8eb2e2 Create the Next Generation of depot_tools. Eh. 16 år sedan
prpc 47a4b0bc59 Add revert instructions 4 år sedan
prpc.bat 47a4b0bc59 Add revert instructions 4 år sedan
pylint-1.5 c3e25c828d Fix hangs when running pylint with py3 3 år sedan
pylint-1.5.bat 866be0f290 Add an option to specify pylint version 4 år sedan
pylint-2.6 6cebde7ca2 Update pylint vpython specs to use a specific minor version. 3 år sedan
pylint-2.6.bat d60b99cd5a Get pylint-2.6 to work under vpython3 on Windows. 4 år sedan
pylint-2.7 6cebde7ca2 Update pylint vpython specs to use a specific minor version. 3 år sedan
pylint-2.7.bat 59e3296a7e Add pylint-2.7 3 år sedan
pylint_main.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
pylintrc 0985861970 CodeInclusion: Rename whitelist/blacklist -> allowlist/blocklist 5 år sedan
python_runner.sh c621315d17 Make Python 3 default on Windows 5 år sedan
rdb 47a4b0bc59 Add revert instructions 4 år sedan
rdb.bat 47a4b0bc59 Add revert instructions 4 år sedan
rdb_wrapper.py 9f38b63b4e Add snippets to presubmit failures in resultdb 2 år sedan
repo 3d7cc837bd repo: restore fstrings for Python 3.6 4 år sedan
repo_launcher 84edf22d0e repo: update to 2.30 launcher 2 år sedan
roll-dep c621315d17 Make Python 3 default on Windows 5 år sedan
roll-dep.bat c621315d17 Make Python 3 default on Windows 5 år sedan
roll_dep.py 03af44a516 Fix roll-dep commit message on Windows and add suggestions 2 år sedan
rustfmt.py 6e33ba049f Use rustfmt from third_party/rust-toolchain/bin directory. 2 år sedan
scm.py c5f0cbb865 Use pylint 2.7 for depot_tools 3 år sedan
setup_color.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
split_cl.py 403c44e293 Add a --max-depth option to git cl split 2 år sedan
subcommand.py 940cd8e20f Use empty argument list in cmdhelp 3 år sedan
subprocess2.py cf06cad1be [subprocess2] Replace VOID with DEVNULL 4 år sedan
swift-format 0a6b544e20 Support git cl formatting for swift files 3 år sedan
swift_format.py 7f39e3d185 Make swift-format default True on Mac hosts 3 år sedan
update_depot_tools 544594e0b2 Reland "Make depot_tools scripts return exit codes properly on all platforms." 3 år sedan
update_depot_tools.bat 253031197f Allow depot_tools/.git to be a file 3 år sedan
update_depot_tools_toggle.py 64f5f26f1a Indicate py3 compatibility for update_depot_tools_toggle.py 3 år sedan
upload_metrics.py 8dd1f99b2e Catch RemoteDisconnected on upload metrics 3 år sedan
upload_to_google_storage.py 787e71ac8b Fix code check in upload to google storage. 2 år sedan
utils.py 0399e1762c Add a basic depot_tools version information 3 år sedan
vpython c9f904f205 Move python2_usage.txt from depot_tools to temp 2 år sedan
vpython.bat c9f904f205 Move python2_usage.txt from depot_tools to temp 2 år sedan
vpython3 811ea056ed vpython(3) no longer needs to bootstrap python. 3 år sedan
vpython3.bat 8d81365cf0 Use the bundled interpreter instead of passing -vpython-interpreter. 3 år sedan
watchlists.py 4de5deacd4 Explicitly run everything with python3 3 år sedan
weekly 4de5deacd4 Explicitly run everything with python3 3 år sedan
whitespace.txt 74e3d80019 Change whitespace.txt 4 år sedan
win32imports.py 14a83aec56 Reland "Use OS level locking in git_cache.py" 5 år sedan
wtf 4de5deacd4 Explicitly run everything with python3 3 år sedan
yapf 36bf3a82fb yapf: remove unused `re` import 3 år sedan
yapf.bat d73d069a76 Run yapf with vpython3 4 år sedan

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.