depot_tools fetch chromium using a specific tag

1,058 views
Skip to first unread message

Han

unread,
Apr 1, 2022, 4:24:13 PM4/1/22
to chromium...@chromium.org
Hi,

Is it possible to use `depot_tools` `fetch` to checkout the chromium source with a specific tag? 

By default, when following the instructions at https://chromium.googlesource.com/chromium/src/+/main/docs/ios/build_instructions.md , it seems that `fetch ios` checks out the latest code.   How can I check out with a build tag, say "96.0.4664.116" ? 

Right now, I am using "git fetch" again afterwards, but it runs for a long time and uses up a lot more space.:

$ git fetch origin refs/tags/96.0.4664.116:refs/tags/96.0.4664.116

Does the `depot_tools` `fetch` support a build tag? 

Thanks!
Han

Cóat Dơ Đạo

unread,
Apr 15, 2022, 11:07:07 AM4/15/22
to Chromium-discuss, keepsimple
The way I used to get the older source code:  git clone --depth 1 --branch 99.0.4844.88 https://chromium.googlesource.com/chromium/src.git

Create .gclient file according to: 

solutions = [ { "name" : "src", "url" : "https://chromium.googlesource.com/chromium/src.git", "deps_file" : "DEPS", "managed" : False, "custom_deps" : {}, "custom_vars" : {}, "custom_hooks": [{ "name": "setup_gn", "pattern": ".", "action": [ "python3", "src/ios/build/tools/setup-gn.py", ] }], "safesync_url": "", }, ] target_os = ["ios"] target_os_only = True

After run cd tp src and run cmd: gclient sync

Good luck !
Reply all
Reply to author
Forward
0 new messages