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 |
James Kuszmaul | dac091f | 2022-03-22 09:35:06 -0700 | [diff] [blame] | 21 | _PROTOBUF_VERSION = "3.15.2" |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 22 | |
| 23 | http_archive( |
| 24 | name = "com_google_protobuf", |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 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 |
James Kuszmaul | dac091f | 2022-03-22 09:35:06 -0700 | [diff] [blame] | 32 | _GRPC_VERSION = "1.42.0" |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 33 | |
| 34 | http_archive( |
| 35 | name = "com_github_grpc_grpc", |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 36 | strip_prefix = "grpc-" + _GRPC_VERSION, |
| 37 | urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"], |
| 38 | ) |
| 39 | |
| 40 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| 41 | |
| 42 | grpc_deps() |
James Kuszmaul | dac091f | 2022-03-22 09:35:06 -0700 | [diff] [blame] | 43 | |
| 44 | load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") |
| 45 | |
| 46 | grpc_extra_deps() |
| 47 | |
| 48 | http_archive( |
| 49 | name = "build_bazel_rules_nodejs", |
| 50 | sha256 = "965ee2492a2b087cf9e0f2ca472aeaf1be2eb650e0cfbddf514b9a7d3ea4b02a", |
| 51 | urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-5.2.0.tar.gz"], |
| 52 | ) |
| 53 | |
| 54 | load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") |
| 55 | |
| 56 | build_bazel_rules_nodejs_dependencies() |
| 57 | |
| 58 | load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") |
| 59 | |
| 60 | node_repositories() |
| 61 | |
| 62 | yarn_install( |
| 63 | name = "npm", |
| 64 | exports_directories_only = False, |
| 65 | # Unfreeze to add/remove packages. |
| 66 | frozen_lockfile = True, |
| 67 | package_json = "//:package.json", |
| 68 | symlink_node_modules = False, |
| 69 | yarn_lock = "//:yarn.lock", |
| 70 | ) |