| workspace(name = "io_bazel_rules_go") |
| |
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| |
| go_rules_dependencies(is_rules_go = True) |
| |
| go_register_toolchains() |
| |
| http_archive( |
| name = "com_google_protobuf", |
| sha256 = "a79d19dcdf9139fa4b81206e318e33d245c4c9da1ffed21c87288ed4380426f9", |
| strip_prefix = "protobuf-3.11.4", |
| # latest, as of 2020-02-21 |
| urls = [ |
| "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.4.tar.gz", |
| "https://github.com/protocolbuffers/protobuf/archive/v3.11.4.tar.gz", |
| ], |
| ) |
| |
| load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| |
| protobuf_deps() |
| |
| load("@io_bazel_rules_go//extras:embed_data_deps.bzl", "go_embed_data_dependencies") |
| |
| go_embed_data_dependencies() |
| |
| http_archive( |
| name = "rules_proto", |
| sha256 = "4d421d51f9ecfe9bf96ab23b55c6f2b809cbaf0eea24952683e397decfbd0dd0", |
| strip_prefix = "rules_proto-f6b8d89b90a7956f6782a4a3609b2f0eee3ce965", |
| # master, as of 2020-01-06 |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/f6b8d89b90a7956f6782a4a3609b2f0eee3ce965.tar.gz", |
| "https://github.com/bazelbuild/rules_proto/archive/f6b8d89b90a7956f6782a4a3609b2f0eee3ce965.tar.gz", |
| ], |
| ) |
| |
| # Used by //tests:buildifier_test. |
| # Latest release is not compatible with the incompatible bazel flags we use |
| # in CI, in particular, --incompatible_load_proto_rules_from_bzl. |
| git_repository( |
| name = "com_github_bazelbuild_buildtools", |
| commit = "f630fda6c1db92241fee1ff66ca07018b2c7a5f3", # master as of 2020-02-03 |
| remote = "https://github.com/bazelbuild/buildtools", |
| shallow_since = "1580754619 +0100", |
| ) |
| |
| # For manual testing against an LLVM toolchain. |
| # Use --crosstool_top=@llvm_toolchain//:toolchain |
| http_archive( |
| name = "com_grail_bazel_toolchain", |
| sha256 = "d312c8e3a19ff843fce3065bb9ff40964401e8525674c842a5724b939cb6e1ac", |
| strip_prefix = "bazel-toolchain-0.4.4", |
| urls = ["https://github.com/grailbio/bazel-toolchain/archive/0.4.4.tar.gz"], |
| ) |
| |
| load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain") |
| |
| llvm_toolchain( |
| name = "llvm_toolchain", |
| llvm_version = "8.0.0", |
| ) |
| |
| http_archive( |
| name = "bazel_toolchains", |
| sha256 = "144290c4166bd67e76a54f96cd504ed86416ca3ca82030282760f0823c10be48", |
| strip_prefix = "bazel-toolchains-3.1.1", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.1/bazel-toolchains-3.1.1.tar.gz", |
| "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.1/bazel-toolchains-3.1.1.tar.gz", |
| ], |
| ) |
| |
| load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") |
| |
| # Creates toolchain configuration for remote execution with BuildKite CI |
| # for rbe_ubuntu1604 |
| rbe_autoconfig( |
| name = "buildkite_config", |
| ) |
| |
| # Needed for tests |
| load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| |
| bazel_skylib_workspace() |
| |
| http_archive( |
| name = "bazel_gazelle", |
| sha256 = "d8c45ee70ec39a57e7a05e5027c32b1576cc7f16d9dd37135b0eddde45cf1b10", |
| urls = [ |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.20.0/bazel-gazelle-v0.20.0.tar.gz", |
| "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.20.0/bazel-gazelle-v0.20.0.tar.gz", |
| ], |
| ) |
| |
| load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| |
| gazelle_dependencies() |
| |
| load("@io_bazel_rules_go//tests/legacy/test_chdir:remote.bzl", "test_chdir_remote") |
| |
| test_chdir_remote() |
| |
| load("@io_bazel_rules_go//tests/integration/popular_repos:popular_repos.bzl", "popular_repos") |
| |
| popular_repos() |
| |
| load("@io_bazel_rules_go//tests:grpc_repos.bzl", "grpc_dependencies") |
| |
| grpc_dependencies() |
| |
| local_repository( |
| name = "runfiles_remote_test", |
| path = "tests/core/runfiles/runfiles_remote_test", |
| ) |