1workspace(name = "com_github_google_flatbuffers") 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4 5http_archive( 6 name = "io_bazel_rules_go", 7 sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566", 8 urls = [ 9 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", 10 "https://github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", 11 ], 12) 13 14load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") 15 16go_rules_dependencies() 17 18go_register_toolchains() 19 20##### Protobuf 21_PROTOBUF_VERSION = "3.15.2" 22 23http_archive( 24 name = "com_google_protobuf", 25 strip_prefix = "protobuf-" + _PROTOBUF_VERSION, 26 urls = [ 27 "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz", 28 ], 29) 30 31##### GRPC 32_GRPC_VERSION = "1.36.1" 33 34http_archive( 35 name = "com_github_grpc_grpc", 36 strip_prefix = "grpc-" + _GRPC_VERSION, 37 urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"], 38) 39 40load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") 41 42grpc_deps() 43 44load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") 45 46grpc_extra_deps() 47