1*eed53cd4SHONG Yifanworkspace(name = "rules_cc") 2*eed53cd4SHONG Yifan 3*eed53cd4SHONG Yifanload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4*eed53cd4SHONG Yifan 5*eed53cd4SHONG Yifanhttp_archive( 6*eed53cd4SHONG Yifan name = "bazel_skylib", 7*eed53cd4SHONG Yifan sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7", 8*eed53cd4SHONG Yifan urls = [ 9*eed53cd4SHONG Yifan "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz", 10*eed53cd4SHONG Yifan "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz", 11*eed53cd4SHONG Yifan ], 12*eed53cd4SHONG Yifan) 13*eed53cd4SHONG Yifan 14*eed53cd4SHONG Yifanhttp_archive( 15*eed53cd4SHONG Yifan name = "com_google_googletest", 16*eed53cd4SHONG Yifan sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2", 17*eed53cd4SHONG Yifan strip_prefix = "googletest-release-1.12.1", 18*eed53cd4SHONG Yifan urls = [ 19*eed53cd4SHONG Yifan "https://mirror.bazel.build/github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz", 20*eed53cd4SHONG Yifan "https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz", 21*eed53cd4SHONG Yifan ], 22*eed53cd4SHONG Yifan) 23*eed53cd4SHONG Yifan 24*eed53cd4SHONG Yifanhttp_archive( 25*eed53cd4SHONG Yifan name = "io_abseil_py", 26*eed53cd4SHONG Yifan sha256 = "0fb3a4916a157eb48124ef309231cecdfdd96ff54adf1660b39c0d4a9790a2c0", 27*eed53cd4SHONG Yifan strip_prefix = "abseil-py-1.4.0", 28*eed53cd4SHONG Yifan urls = [ 29*eed53cd4SHONG Yifan "https://github.com/abseil/abseil-py/archive/refs/tags/v1.4.0.tar.gz", 30*eed53cd4SHONG Yifan ], 31*eed53cd4SHONG Yifan) 32*eed53cd4SHONG Yifan 33*eed53cd4SHONG Yifanhttp_archive( 34*eed53cd4SHONG Yifan name = "io_bazel_rules_go", 35*eed53cd4SHONG Yifan sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023", 36*eed53cd4SHONG Yifan urls = [ 37*eed53cd4SHONG Yifan "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip", 38*eed53cd4SHONG Yifan "https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip", 39*eed53cd4SHONG Yifan ], 40*eed53cd4SHONG Yifan) 41*eed53cd4SHONG Yifan 42*eed53cd4SHONG Yifanhttp_archive( 43*eed53cd4SHONG Yifan name = "platforms", 44*eed53cd4SHONG Yifan sha256 = "3a561c99e7bdbe9173aa653fd579fe849f1d8d67395780ab4770b1f381431d51", 45*eed53cd4SHONG Yifan urls = [ 46*eed53cd4SHONG Yifan "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz", 47*eed53cd4SHONG Yifan "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz", 48*eed53cd4SHONG Yifan ], 49*eed53cd4SHONG Yifan) 50*eed53cd4SHONG Yifan 51*eed53cd4SHONG Yifanhttp_archive( 52*eed53cd4SHONG Yifan name = "py_mock", 53*eed53cd4SHONG Yifan patch_cmds = [ 54*eed53cd4SHONG Yifan "mkdir -p py/mock", 55*eed53cd4SHONG Yifan "mv mock.py py/mock/__init__.py", 56*eed53cd4SHONG Yifan """echo 'licenses(["notice"])' > BUILD""", 57*eed53cd4SHONG Yifan "touch py/BUILD", 58*eed53cd4SHONG Yifan """echo 'py_library(name = "mock", srcs = ["__init__.py"], visibility = ["//visibility:public"],)' > py/mock/BUILD""", 59*eed53cd4SHONG Yifan ], 60*eed53cd4SHONG Yifan sha256 = "b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f", 61*eed53cd4SHONG Yifan strip_prefix = "mock-1.0.1", 62*eed53cd4SHONG Yifan urls = [ 63*eed53cd4SHONG Yifan "https://mirror.bazel.build/pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz", 64*eed53cd4SHONG Yifan "https://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz", 65*eed53cd4SHONG Yifan ], 66*eed53cd4SHONG Yifan) 67*eed53cd4SHONG Yifan 68*eed53cd4SHONG Yifanhttp_archive( 69*eed53cd4SHONG Yifan name = "rules_proto", 70*eed53cd4SHONG Yifan sha256 = "9a0503631679e9ab4e27d891ea60fee3e86a85654ea2048cae25516171dd260e", 71*eed53cd4SHONG Yifan strip_prefix = "rules_proto-e51f588e5932966ab9e63e0b0f6de6f740cf04c4", 72*eed53cd4SHONG Yifan urls = [ 73*eed53cd4SHONG Yifan "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/e51f588e5932966ab9e63e0b0f6de6f740cf04c4.tar.gz", 74*eed53cd4SHONG Yifan "https://github.com/bazelbuild/rules_proto/archive/e51f588e5932966ab9e63e0b0f6de6f740cf04c4.tar.gz", 75*eed53cd4SHONG Yifan ], 76*eed53cd4SHONG Yifan) 77*eed53cd4SHONG Yifan 78*eed53cd4SHONG Yifanload("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") 79*eed53cd4SHONG Yifan 80*eed53cd4SHONG Yifanbazel_skylib_workspace() 81*eed53cd4SHONG Yifan 82*eed53cd4SHONG Yifanload("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") 83*eed53cd4SHONG Yifan 84*eed53cd4SHONG Yifango_rules_dependencies() 85*eed53cd4SHONG Yifan 86*eed53cd4SHONG Yifango_register_toolchains(version = "1.20.5") 87*eed53cd4SHONG Yifan 88*eed53cd4SHONG Yifanload("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") 89*eed53cd4SHONG Yifan 90*eed53cd4SHONG Yifanrules_proto_dependencies() 91*eed53cd4SHONG Yifan 92*eed53cd4SHONG Yifanrules_proto_toolchains() 93*eed53cd4SHONG Yifan 94*eed53cd4SHONG Yifanhttp_archive( 95*eed53cd4SHONG Yifan name = "rules_testing", 96*eed53cd4SHONG Yifan sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4", 97*eed53cd4SHONG Yifan strip_prefix = "rules_testing-0.6.0", 98*eed53cd4SHONG Yifan url = "https://github.com/bazelbuild/rules_testing/releases/download/v0.6.0/rules_testing-v0.6.0.tar.gz", 99*eed53cd4SHONG Yifan) 100