• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This is a WORKSPACE file used by bzlmod in combination with MODULE.bazel.
2# It's used for a gradual migration and it should be empty.
3# Don't remove this file. If the file doesn't exist, bzlmod falls back to WORKSPACE file.
4
5load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
6
7# TODO: either replace rules_ruby with a maintained version on BCR
8# or use bzlmod extensions to depend on this specific repo
9http_archive(
10    name = "rules_ruby",
11    urls = [
12      "https://github.com/protocolbuffers/rules_ruby/archive/b7f3e9756f3c45527be27bc38840d5a1ba690436.zip"
13    ],
14    strip_prefix = "rules_ruby-b7f3e9756f3c45527be27bc38840d5a1ba690436",
15    sha256 = "347927fd8de6132099fcdc58e8f7eab7bde4eb2fd424546b9cd4f1c6f8f8bad8",
16)
17
18load("@rules_ruby//ruby:defs.bzl", "ruby_runtime")
19
20ruby_runtime("system_ruby")
21
22register_toolchains("@system_ruby//:toolchain")
23
24# Following are just needed to run conformance tests, not really needed to support them via MODULE.bazel
25
26# For testing runtime against old gencode from a previous major version.
27http_archive(
28    name = "com_google_protobuf_v25.0",
29    strip_prefix = "protobuf-25.0",
30    url = "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protobuf-25.0.tar.gz",
31)
32
33# Needed as a dependency of @com_google_protobuf_v25.0
34load("@com_google_protobuf_v25.0//:protobuf_deps.bzl", protobuf_v25_deps="protobuf_deps")
35protobuf_v25_deps()
36
37
38# Needed for checking breaking changes from the previous release version.
39load("//:protobuf_version.bzl", "PROTOBUF_PREVIOUS_RELEASE")
40
41http_archive(
42    name = "com_google_protobuf_previous_release",
43    strip_prefix = "protobuf-" + PROTOBUF_PREVIOUS_RELEASE,
44    url = "https://github.com/protocolbuffers/protobuf/releases/download/v{0}/protobuf-{0}.tar.gz".format(PROTOBUF_PREVIOUS_RELEASE),
45)
46