github.com/distbuild/reclient@v0.0.0-20240401075343-3de72e395564/WORKSPACE (about)

     1  workspace(name = "re_client")
     2  
     3  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
     4  load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
     5  
     6  http_archive(
     7      name = "bazel_skylib",
     8      sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
     9      urls = [
    10          "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    11          "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
    12      ],
    13  )
    14  
    15  load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
    16  
    17  bazel_skylib_workspace()
    18  
    19  http_archive(
    20      name = "io_bazel_rules_go",
    21      # TODO(b/180953129): Required to build re-client with RBE on windows for now.
    22      # Wait until https://github.com/bazelbuild/remote-apis/issues/187 is fixed on
    23      # RE side, and https://github.com/bazelbuild/bazel/issues/11636 on bazel side.
    24      patch_args = ["-p1"],
    25      patches = ["//third_party/patches/bazel:rules_go.patch"],
    26      sha256 = "16e9fca53ed6bd4ff4ad76facc9b7b651a89db1689a2877d6fd7b82aa824e366",
    27      urls = [
    28          "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip",
    29          "https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip",
    30      ],
    31  )
    32  
    33  http_archive(
    34      name = "bazel_gazelle",
    35      sha256 = "efbbba6ac1a4fd342d5122cbdfdb82aeb2cf2862e35022c752eaddffada7c3f3",
    36      urls = [
    37          "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.27.0/bazel-gazelle-v0.27.0.tar.gz",
    38          "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.27.0/bazel-gazelle-v0.27.0.tar.gz",
    39      ],
    40  )
    41  
    42  load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
    43  load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
    44  
    45  go_repository(
    46      name = "com_github_google_uuid",
    47      importpath = "github.com/google/uuid",
    48      sum = "h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA=",
    49      version = "v1.0.0",
    50  )
    51  
    52  go_repository(
    53      name = "com_github_google_go_cmp",
    54      importpath = "github.com/google/go-cmp",
    55      sum = "h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=",
    56      version = "v0.5.1",
    57  )
    58  
    59  go_repository(
    60      name = "com_google_cloud_go_bigquery",
    61      importpath = "cloud.google.com/go/bigquery",
    62      sum = "h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=",
    63      version = "v1.8.0",
    64  )
    65  
    66  go_repository(
    67      name = "org_golang_x_net",
    68      importpath = "golang.org/x/net",
    69      sum = "h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk=",
    70      version = "v0.0.0-20220127200216-cd36cc0744dd",
    71  )
    72  
    73  go_repository(
    74      name = "org_golang_x_oauth2",
    75      importpath = "golang.org/x/oauth2",
    76      sum = "h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g=",
    77      version = "v0.7.0",
    78  )
    79  
    80  go_repository(
    81      name = "org_golang_x_sync",
    82      importpath = "golang.org/x/sync",
    83      sum = "h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=",
    84      version = "v0.0.0-20200625203802-6e8e738ad208",
    85  )
    86  
    87  go_repository(
    88      name = "org_golang_x_sys",
    89      importpath = "golang.org/x/sys",
    90      sum = "h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=",
    91      version = "v0.4.0",
    92  )
    93  
    94  go_repository(
    95      name = "org_golang_x_text",
    96      importpath = "golang.org/x/text",
    97      sum = "h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=",
    98      version = "v0.3.7",
    99  )
   100  
   101  go_repository(
   102      name = "com_github_golang_snappy",
   103      importpath = "github.com/golang/snappy",
   104      sum = "h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=",
   105      version = "v0.0.3",
   106  )
   107  
   108  go_repository(
   109      name = "com_github_klauspost_compress",
   110      importpath = "github.com/klauspost/compress",
   111      sum = "h1:G5AfA94pHPysR56qqrkO2pxEexdDzrpFJ6yt/VqWxVU=",
   112      version = "v1.12.3",
   113  )
   114  
   115  go_repository(
   116      name = "com_github_fatih_color",
   117      importpath = "github.com/fatih/color",
   118      sum = "h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=",
   119      version = "v1.13.0",
   120  )
   121  
   122  # Needed for github.com/fatih/color.
   123  go_repository(
   124      name = "com_github_mattn_go_colorable",
   125      importpath = "github.com/mattn/go-colorable",
   126      sum = "h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=",
   127      version = "v0.1.12",
   128  )
   129  
   130  # Needed for github.com/fatih/color.
   131  go_repository(
   132      name = "com_github_mattn_go_isatty",
   133      importpath = "github.com/mattn/go-isatty",
   134      sum = "h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=",
   135      version = "v0.0.14",
   136  )
   137  
   138  go_repository(
   139      name = "org_golang_x_lint",
   140      importpath = "golang.org/x/lint",
   141      sum = "h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug=",
   142      version = "v0.0.0-20210508222113-6edffad5e616",
   143  )
   144  
   145  # Needed for golang.org/x/lint
   146  go_repository(
   147      name = "org_golang_x_tools",
   148      importpath = "golang.org/x/tools",
   149      sum = "h1:W07d4xkoAUSNOkOzdzXCdFGxT7o2rW4q8M34tB2i//k=",
   150      version = "v0.0.0-20200825202427-b303f430e36d",
   151  )
   152  
   153  go_repository(
   154      name = "com_github_hectane_go_acl",
   155      importpath = "github.com/hectane/go-acl",
   156      sum = "h1:PGufWXXDq9yaev6xX1YQauaO1MV90e6Mpoq1I7Lz/VM=",
   157      version = "v0.0.0-20230122075934-ca0b05cb1adb",
   158  )
   159  
   160  go_repository(
   161      name = "com_github_gosuri_uilive",
   162      importpath = "github.com/gosuri/uilive",
   163      sum = "h1:hUEBpQDj8D8jXgtCdBu7sWsy5sbW/5GhuO8KBwJ2jyY=",
   164      version = "v0.0.4",
   165  )
   166  
   167  load("//:go_deps.bzl", "shirou_gopsutil_deps")
   168  
   169  # gazelle:repository_macro go_deps.bzl%shirou_gopsutil_deps
   170  shirou_gopsutil_deps()
   171  
   172  go_rules_dependencies()
   173  
   174  go_register_toolchains(version = "1.19.5")
   175  
   176  # Needed for protobuf.
   177  http_archive(
   178      name = "com_google_protobuf",
   179      sha256 = "985bb1ca491f0815daad825ef1857b684e0844dc68123626a08351686e8d30c9",
   180      strip_prefix = "protobuf-3.15.6",
   181      urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.15.6.zip"],
   182  )
   183  
   184  load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
   185  
   186  protobuf_deps()
   187  
   188  load("//:settings.bzl", "GO_GRPC_VERSION", "GO_PROTO_VERSION", "LLVM_COMMIT", "LLVM_SHA256", "SDK_COMMIT")
   189  
   190  http_archive(
   191      name = "llvm",
   192      build_file_content = "#empty",
   193      patch_args = ["-p1"],
   194      patches = [
   195          # For simplicity, we expose the tblgen rule for a binary we use.
   196          "//third_party/patches/llvm:llvm-bzl-tblgen.patch",
   197          # This patch picks the right version of assembly files to build libSupport
   198          # on Windows. Refer to https://github.com/llvm/llvm-project/issues/54685
   199          # for the corresponding fix to CMake files.
   200          "//third_party/patches/llvm:llvm-bazel-libsupport.patch",
   201          # Replace @llvm-raw with @llvm so we can build llvm inside of re-client.
   202          # In the llvm-project checkout, @llvm-raw is defined the WORKSPACE file
   203          # and point to the root of llvm-project; However, when we invoke the
   204          # line `llvm_configure(name = "llvm-project")` below, in the bzl file,
   205          # @llvm//utils/bazel:configure.bzl, @llvm-raw is not pre-defined.
   206          "//third_party/patches/llvm:llvm-bzl-config.patch",
   207      ],
   208      sha256 = LLVM_SHA256,
   209      strip_prefix = "llvm-project-%s" % LLVM_COMMIT,
   210      urls = [
   211          "https://mirror.bazel.build/github.com/llvm/llvm-project/archive/%s.zip" % LLVM_COMMIT,
   212          "https://github.com/llvm/llvm-project/archive/%s.zip" % LLVM_COMMIT,
   213      ],
   214  )
   215  
   216  load("@llvm//utils/bazel:configure.bzl", "llvm_configure")
   217  
   218  llvm_configure(name = "llvm-project")
   219  
   220  # Need to keep zlib and zstd below to build LLVM on Windows.
   221  # We also need to have a patch to disable the use of zstd on Windows.
   222  # See: third_party/patches/llvm/llvm-bzl-zstd.patch
   223  # Without these two libs, windows build through err msg like this:
   224  # https://paste.googleplex.com/5724967793065984
   225  # Without the patch to disable zstd on Windows, we get err msg like this:
   226  # https://paste.googleplex.com/4613455502376960
   227  maybe(
   228      http_archive,
   229      name = "llvm_zlib",
   230      build_file = "@llvm//utils/bazel/third_party_build:zlib-ng.BUILD",
   231      sha256 = "e36bb346c00472a1f9ff2a0a4643e590a254be6379da7cddd9daeb9a7f296731",
   232      strip_prefix = "zlib-ng-2.0.7",
   233      urls = [
   234          "https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.0.7.zip",
   235      ],
   236  )
   237  
   238  maybe(
   239      http_archive,
   240      name = "llvm_zstd",
   241      build_file = "@llvm//utils/bazel/third_party_build:zstd.BUILD",
   242      sha256 = "7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0",
   243      strip_prefix = "zstd-1.5.2",
   244      urls = [
   245          "https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz",
   246      ],
   247  )
   248  
   249  # This grpc section must come after llvm
   250  http_archive(
   251      name = "com_github_grpc_grpc",
   252      sha256 = "76900ab068da86378395a8e125b5cc43dfae671e09ff6462ddfef18676e2165a",
   253      strip_prefix = "grpc-1.50.0",
   254      urls = [
   255          "https://github.com/grpc/grpc/archive/refs/tags/v1.50.0.tar.gz",
   256      ],
   257  )
   258  
   259  load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
   260  
   261  grpc_deps()
   262  
   263  # Extra dependencies extracted from grpc_extra_deps.bzl to remove duplication and conflicts
   264  load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
   265  load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
   266  load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
   267  
   268  apple_rules_dependencies()
   269  
   270  apple_support_dependencies()
   271  
   272  # Initialize Google APIs with only C++ and Python targets
   273  switched_rules_by_language(
   274      name = "com_google_googleapis_imports",
   275      cc = True,
   276      grpc = True,
   277      python = True,
   278  )
   279  # End grpc section
   280  
   281  http_archive(
   282      name = "com_github_gflags_gflags",
   283      sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
   284      strip_prefix = "gflags-2.2.2",
   285      urls = ["https://github.com/gflags/gflags/archive/v2.2.2.tar.gz"],
   286  )
   287  
   288  # glog here is specifically used on Windows for the dependency scanner service.
   289  # The version must be identical to that used by goma.
   290  http_archive(
   291      name = "com_github_google_glog",
   292      sha256 = "21bc744fb7f2fa701ee8db339ded7dce4f975d0d55837a97be7d46e8382dea5a",
   293      strip_prefix = "glog-0.5.0",
   294      urls = ["https://github.com/google/glog/archive/v0.5.0.zip"],
   295  )
   296  
   297  go_repository(
   298      name = "com_github_golang_glog",
   299      importpath = "github.com/golang/glog",
   300      sum = "h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=",
   301      version = "v1.2.0",
   302  )
   303  
   304  go_repository(
   305      name = "org_golang_google_protobuf",
   306      importpath = "google.golang.org/protobuf",
   307      sum = "h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=",
   308      version = GO_PROTO_VERSION,
   309  )
   310  
   311  # Needed for io_opencensus_go_contrib_exporter_stackdriver.
   312  go_repository(
   313      name = "com_google_cloud_go",
   314      importpath = "cloud.google.com/go",
   315      sum = "h1:Dg9iHVQfrhq82rUNu9ZxUDrJLaxFUe/HlCVaLyRruq8=",
   316      version = "v0.65.0",
   317  )
   318  
   319  go_repository(
   320      name = "com_github_microsoft_go_winio",
   321      importpath = "github.com/Microsoft/go-winio",
   322      sum = "h1:aPJp2QD7OOrhO5tQXqQoGSJc+DjDtWTGLOmNyAm6FgY=",
   323      version = "v0.5.1",
   324  )
   325  
   326  # needed for cloud.google.com/go/profiler
   327  go_repository(
   328      name = "com_github_google_pprof",
   329      importpath = "github.com/google/pprof",
   330      sum = "h1:Ak8CrdlwwXwAZxzS66vgPt4U8yUZX7JwLvVR58FN5jM=",
   331      version = "v0.0.0-20200708004538-1a94d8640e99",
   332  )
   333  
   334  # Needed for opencensus.
   335  go_repository(
   336      name = "com_github_golang_groupcache",
   337      importpath = "github.com/golang/groupcache",
   338      sum = "h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=",
   339      version = "v0.0.0-20200121045136-8c9f03a8e57e",
   340  )
   341  
   342  # remote and vcs attributes are required for downloading major version suffixed.
   343  go_repository(
   344      name = "com_github_shirou_gopsutil",
   345      commit = "faad8060806256ffc4da37f9535160af4e8b0fee",
   346      importpath = "github.com/shirou/gopsutil/v3",
   347      remote = "https://github.com/shirou/gopsutil",
   348      vcs = "git",
   349  )
   350  
   351  go_repository(
   352      name = "io_opencensus_go",
   353      importpath = "go.opencensus.io",
   354      sum = "h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=",
   355      version = "v0.24.0",
   356  )
   357  
   358  go_repository(
   359      name = "io_opencensus_go_contrib_exporter_stackdriver",
   360      importpath = "contrib.go.opencensus.io/exporter/stackdriver",
   361      patch_args = ["-p1"],
   362      patches = ["//third_party/patches/opencensus-go-exporter-stackdriver:opencensus-stackdriver-interval.patch"],
   363      sum = "h1:lIFYmQsqejvlq+GobFUbC5F0prD5gvhP6r0gWLZRDq4=",
   364      version = "v0.13.8",
   365  )
   366  
   367  # Needed for io_opencensus_go_contrib_exporter_stackdriver.
   368  go_repository(
   369      name = "com_github_census_instrumentation_opencensus_proto",
   370      build_extra_args = ["-exclude=src"],
   371      importpath = "github.com/census-instrumentation/opencensus-proto",
   372      sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=",
   373      version = "v0.2.1",
   374  )
   375  
   376  # Needed for io_opencensus_go_contrib_exporter_stackdriver.
   377  go_repository(
   378      name = "com_github_aws_aws_sdk_go",
   379      importpath = "github.com/aws/aws-sdk-go",
   380      tag = "v1.23.20",
   381  )
   382  
   383  go_repository(
   384      name = "org_golang_google_api",
   385      importpath = "google.golang.org/api",
   386      sum = "h1:yfrXXP61wVuLb0vBcG6qaOoIoqYEzOQS8jum51jkv2w=",
   387      version = "v0.30.0",
   388  )
   389  
   390  go_repository(
   391      name = "org_golang_google_grpc",
   392      importpath = "google.golang.org/grpc",
   393      sum = "h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI=",
   394      version = GO_GRPC_VERSION,
   395  )
   396  
   397  go_repository(
   398      name = "com_github_googleapis_gax_go_v2",
   399      importpath = "github.com/googleapis/gax-go/v2",
   400      sum = "h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=",
   401      version = "v2.0.5",
   402  )
   403  
   404  go_repository(
   405      name = "com_github_karrick_godirwalk",
   406      importpath = "github.com/karrick/godirwalk",
   407      tag = "v1.16.1",
   408  )
   409  
   410  go_repository(
   411      name = "com_github_pkg_xattr",
   412      importpath = "github.com/pkg/xattr",
   413      tag = "v0.4.4",
   414  )
   415  
   416  go_repository(
   417      name = "com_github_vardius_progress_go",
   418      commit = "c85a970b9413ed1fe58311b98ac4048826ffcc93",
   419      importpath = "github.com/vardius/progress-go",
   420  )
   421  
   422  go_repository(
   423      name = "org_golang_x_xerrors",
   424      importpath = "golang.org/x/xerrors",
   425      sum = "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
   426      version = "v0.0.0-20200804184101-5ec99f83aff1",
   427  )
   428  
   429  http_archive(
   430      name = "protoc_gen_bq_schema",
   431      build_file = "protoc_gen_bq_schema/BUILD.bazel",
   432      sha256 = "e7d18d4d0f91a647aebb808c07a72d498515635beb2a0e8b0e2cac44ee944e5a",
   433      strip_prefix = "protoc-gen-bq-schema-026f9fcdf7054ab6c21c8c72484fe6774ac5f149",
   434      urls = ["https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/archive/026f9fcdf7054ab6c21c8c72484fe6774ac5f149.zip"],
   435      workspace_file = "protoc_gen_bq_schema/WORKSPACE",
   436  )
   437  
   438  load("gclient.bzl", "gclient_repository")
   439  
   440  GOMA_REV = "603dfba63fe365a01879029588b48b6f122fe0b8"
   441  
   442  gclient_repository(
   443      name = "goma",
   444      base_dir = "client/client",
   445      build_file = "BUILD.goma",
   446      gn_args_linux = "is_debug=false agnostic_build=true use_custom_libcxx=false",
   447      gn_args_macos_arm64 = "is_debug=false agnostic_build=true target_cpu=\"arm64\"",
   448      gn_args_macos_x86 = "is_debug=false agnostic_build=true target_cpu=\"x64\"",
   449      gn_args_windows = "is_debug=false is_clang=true is_win_gcc=false agnostic_build=true is_component_build=true",
   450      gn_args_windows_dbg = "is_debug=true is_clang=true is_win_gcc=false agnostic_build=true is_component_build=true",
   451      patches = [
   452          "//third_party/patches/goma:goma.patch",
   453          # It seems like on Mac, popen and pclose calls aren't thread safe, which is how we
   454          # invoke it with scandeps_server. According to
   455          # https://github.com/microsoft/vcpkg-tool/pull/695/, this maybe due to a bug in
   456          # popen implementation in Mac that makes it not thread safe. This patch adds a mutex
   457          # that prevents multi-threaded popen and pclose calls.
   458          "//third_party/patches/goma:goma_subprocess.patch",
   459      ],
   460      remote = "https://chromium.googlesource.com/infra/goma/client",
   461      revision = GOMA_REV,
   462  )
   463  
   464  http_archive(
   465      name = "rules_foreign_cc",
   466      patch_args = ["-p1"],
   467      # TODO(b/203451199): Remove when https://github.com/bazelbuild/rules_foreign_cc/pull/805 is merged.
   468      patches = ["//third_party/patches/bazel:rfcc.patch"],
   469      sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51",
   470      strip_prefix = "rules_foreign_cc-0.9.0",
   471      url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/0.9.0.tar.gz",
   472  )
   473  
   474  load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
   475  
   476  # See documentation in:
   477  # https://github.com/bazelbuild/rules_foreign_cc/blob/23907e59728326c8a8baf774cdb4e16332c0d002/foreign_cc/repositories.bzl
   478  # For simplicity, leave defaults which also install cmake and make.
   479  rules_foreign_cc_dependencies(
   480      register_built_tools = True,
   481      register_default_tools = True,
   482      register_preinstalled_tools = False,
   483  )
   484  
   485  # As explained in github.com/bazelbuild/bazel-gazelle/issues/1115,
   486  # gazelle dependencies should be ran after all their dependencies.
   487  # In part this is due to github.com/bazelbuild/bazel/issues/6864,
   488  # which would silently override our own dependencies with the ones
   489  # from gazelle. Unfortunately, something about the setup of the RE SDK
   490  # and RE API prevents them from being imported before gazelle.
   491  gazelle_dependencies()
   492  
   493  # need build_file_generation="off"
   494  # https://github.com/bazelbuild/bazel-gazelle/issues/890
   495  go_repository(
   496      name = "com_github_bazelbuild_remote_apis_sdks",
   497      build_file_generation = "off",
   498      commit = SDK_COMMIT,
   499      importpath = "github.com/bazelbuild/remote-apis-sdks",
   500  )
   501  # Use the local_reprository configuration below to replace the github version of the SDK with a local version.
   502  #local_repository(
   503  #    name = "com_github_bazelbuild_remote_apis_sdks",
   504  #    path = "/usr/local/google/home/{user}/remote-apis-sdks"
   505  #)
   506  
   507  load("@com_github_bazelbuild_remote_apis_sdks//:go_deps.bzl", "remote_apis_sdks_go_deps")
   508  
   509  remote_apis_sdks_go_deps()
   510  
   511  # Additional dependencies of remote_apis_sdks that cannot be loaded in remote_apis_sdks_go_deps().
   512  http_archive(
   513      name = "googleapis",
   514      build_file = "BUILD.googleapis",
   515      sha256 = "7b6ea252f0b8fb5cd722f45feb83e115b689909bbb6a393a873b6cbad4ceae1d",
   516      strip_prefix = "googleapis-143084a2624b6591ee1f9d23e7f5241856642f4d",
   517      urls = ["https://github.com/googleapis/googleapis/archive/143084a2624b6591ee1f9d23e7f5241856642f4d.zip"],
   518  )
   519  
   520  go_repository(
   521      name = "com_github_bazelbuild_remote_apis",
   522      importpath = "github.com/bazelbuild/remote-apis",
   523      sum = "h1:Lj8uXWW95oXyYguUSdQDvzywQb4f0jbJWsoLPQWAKTY=",
   524      version = "v0.0.0-20230411132548-35aee1c4a425",
   525  )
   526  
   527  load("@com_github_bazelbuild_remote_apis//:remote_apis_deps.bzl", "remote_apis_go_deps")
   528  
   529  remote_apis_go_deps()
   530  
   531  # For integration tests that use ninja.
   532  load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
   533  
   534  new_git_repository(
   535      name = "depot_tools",
   536      build_file_content = """
   537  exports_files(["gn", "gn.bat", "gn.py", "ninja", "ninja-linux64", "ninja-mac", "ninja.exe",])
   538  """,
   539      commit = "940cd8e20f5451a03737f1fbcc505f7b84dff2b3",
   540      remote = "https://chromium.googlesource.com/chromium/tools/depot_tools.git",
   541      shallow_since = "1660680867 +0000",
   542  )
   543  
   544  http_archive(
   545      name = "com_google_googletest",
   546      strip_prefix = "googletest-7c07a863693b0c831f80473f7c6905d7e458682c",
   547      urls = ["https://github.com/google/googletest/archive/7c07a863693b0c831f80473f7c6905d7e458682c.zip"],
   548  )