Protobuf Team Bot | 507ba36 | 2024-07-16 03:38:36 -0700 | [diff] [blame] | 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 | |
| 5 | load("@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 |
| 9 | http_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 | |
| 18 | load("@rules_ruby//ruby:defs.bzl", "ruby_runtime") |
| 19 | |
| 20 | ruby_runtime("system_ruby") |
| 21 | |
| 22 | register_toolchains("@system_ruby//:toolchain") |
| 23 | |
| 24 | # Follwing 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. |
| 27 | http_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.x, which was before |
| 34 | # utf8_range was merged in. |
| 35 | http_archive( |
| 36 | name = "utf8_range", |
| 37 | strip_prefix = "utf8_range-d863bc33e15cba6d873c878dcca9e6fe52b2f8cb", |
| 38 | url = "https://github.com/protocolbuffers/utf8_range/archive/d863bc33e15cba6d873c878dcca9e6fe52b2f8cb.zip", |
| 39 | ) |
| 40 | |