diff --git a/.gitignore b/.gitignore index d225542e..56041446 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ /third_party/linux/.cipd /third_party/linux/clang /third_party/linux/sysroot +/third_party/go /third_party/gyp/gyp /third_party/mini_chromium/mini_chromium /third_party/zlib/zlib diff --git a/DEPS b/DEPS index e6719e2a..ae5cc201 100644 --- a/DEPS +++ b/DEPS @@ -114,6 +114,45 @@ hooks = [ 'buildtools/win/gn.exe.sha1', ], }, + { + 'name': 'go_toolchain_mac', + 'condition': 'host_os == "mac"', + 'pattern': '.', + 'action': [ + 'cipd', + 'install', + 'infra/go/mac-amd64', + 'latest', + '-root', 'crashpad/third_party/go/mac-amd64', + '-log-level', 'info', + ], + }, + { + 'name': 'go_toolchain_linux', + 'condition': 'host_os == "linux"', + 'pattern': '.', + 'action': [ + 'cipd', + 'install', + 'infra/go/linux-amd64', + 'latest', + '-root', 'crashpad/third_party/go/linux-amd64', + '-log-level', 'info', + ], + }, + { + 'name': 'go_toolchain_win', + 'condition': 'host_os == "win"', + 'pattern': '.', + 'action': [ + 'cipd', + 'install', + 'infra/go/windows-amd64', + 'latest', + '-root', 'crashpad/third_party/go/windows-amd64', + '-log-level', 'info', + ], + }, { # This uses “cipd install” so that mac-amd64 and linux-amd64 can coexist # peacefully. “cipd ensure” would remove the macOS package when running on a