Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 1 | workspace(name = "com_github_google_flatbuffers") |
| 2 | |
| 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 4 | |
| 5 | http_archive( |
| 6 | name = "io_bazel_rules_go", |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame^] | 7 | sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566", |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 8 | urls = [ |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame^] | 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", |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 11 | ], |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 15 | |
| 16 | go_rules_dependencies() |
| 17 | |
| 18 | go_register_toolchains() |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame^] | 19 | |
| 20 | ##### Protobuf |
| 21 | _PROTOBUF_VERSION = "3.6.1" |
| 22 | |
| 23 | http_archive( |
| 24 | name = "com_google_protobuf", |
| 25 | patch_args = ["-p1"], |
| 26 | patches = [ |
| 27 | "//bazel:protobuf_deps_3_6_1.patch", |
| 28 | ], |
| 29 | strip_prefix = "protobuf-" + _PROTOBUF_VERSION, |
| 30 | urls = [ |
| 31 | "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz", |
| 32 | ], |
| 33 | ) |
| 34 | |
| 35 | ##### GRPC |
| 36 | _GRPC_VERSION = "1.15.1" |
| 37 | |
| 38 | http_archive( |
| 39 | name = "com_github_grpc_grpc", |
| 40 | patch_args = ["-p1"], |
| 41 | patches = [ |
| 42 | "//bazel:grpc_deps_1_15_1.patch", |
| 43 | "//bazel:grpc_deps_1_15_1_02.patch", |
| 44 | ], |
| 45 | strip_prefix = "grpc-" + _GRPC_VERSION, |
| 46 | urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"], |
| 47 | ) |
| 48 | |
| 49 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| 50 | |
| 51 | grpc_deps() |