| # This is a WORKSPACE file used by bzlmod in combination with MODULE.bazel. |
| # It's used for a gradual migration and it should be empty. |
| # Don't remove this file. If the file doesn't exist, bzlmod falls back to WORKSPACE file. |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| # TODO: either replace rules_ruby with a maintained version on BCR |
| # or use bzlmod extensions to depend on this specific repo |
| http_archive( |
| name = "rules_ruby", |
| urls = [ |
| "https://github.com/protocolbuffers/rules_ruby/archive/588d9dd40487277e2560ece09fe310d7c0ecb4a6.zip" |
| ], |
| strip_prefix = "rules_ruby-588d9dd40487277e2560ece09fe310d7c0ecb4a6", |
| integrity = "sha256-Lh/xxR6WsKJnS92sYkpJDBtdS6DNrCbi0kuUxBffG6E=", |
| ) |
| |
| load("@rules_ruby//ruby:defs.bzl", "ruby_runtime") |
| |
| ruby_runtime("system_ruby") |
| |
| register_toolchains("@system_ruby//:toolchain") |
| |
| load("@system_ruby//:bundle.bzl", "ruby_bundle") |
| |
| ruby_bundle( |
| name = "protobuf_bundle", |
| srcs = ["//ruby:google-protobuf.gemspec"], |
| bundler_version = "2.4.22", |
| gemfile = "//ruby:Gemfile", |
| ) |
| |
| # For testing UPB. |
| http_archive( |
| name = "lua", |
| build_file = "//python/dist:lua.BUILD", |
| sha256 = "b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b", |
| strip_prefix = "lua-5.2.4", |
| urls = [ |
| "https://mirror.bazel.build/www.lua.org/ftp/lua-5.2.4.tar.gz", |
| "https://www.lua.org/ftp/lua-5.2.4.tar.gz", |
| ], |
| ) |
| |
| http_archive( |
| name = "com_github_google_benchmark", |
| sha256 = "62e2f2e6d8a744d67e4bbc212fcfd06647080de4253c97ad5c6749e09faf2cb0", |
| strip_prefix = "benchmark-0baacde3618ca617da95375e0af13ce1baadea47", |
| urls = ["https://github.com/google/benchmark/archive/0baacde3618ca617da95375e0af13ce1baadea47.zip"], |
| ) |
| |
| http_archive( |
| name = "com_google_googleapis", |
| build_file = "//benchmarks:BUILD.googleapis", |
| patch_cmds = ["find google -type f -name BUILD.bazel -delete"], |
| sha256 = "d986023c3d8d2e1b161e9361366669cac9fb97c2a07e656c2548aca389248bb4", |
| strip_prefix = "googleapis-d81d0b9e6993d6ab425dff4d7c3d05fb2e59fa57", |
| urls = ["https://github.com/googleapis/googleapis/archive/d81d0b9e6993d6ab425dff4d7c3d05fb2e59fa57.zip"], |
| ) |
| |
| # Following are just needed to run conformance tests, not really needed to support them via MODULE.bazel |
| |
| # For testing runtime against old gencode from a previous major version. |
| http_archive( |
| name = "com_google_protobuf_v25.0", |
| integrity = "sha256-e+7ZxRHWMs/3wirACU3Xcg5VAVMDnV2n4Fm8zrSIR0o=", |
| strip_prefix = "protobuf-25.0", |
| url = "https://github.com/protocolbuffers/protobuf/releases/download/v25.0/protobuf-25.0.tar.gz", |
| ) |
| |
| # Needed as a dependency of @com_google_protobuf_v25.0 |
| load("@com_google_protobuf_v25.0//:protobuf_deps.bzl", protobuf_v25_deps="protobuf_deps") |
| protobuf_v25_deps() |
| |
| # Needed for checking breaking changes from the previous release version. |
| load("//:protobuf_version.bzl", "PROTOBUF_PREVIOUS_RELEASE") |
| |
| http_archive( |
| name = "com_google_protobuf_previous_release", |
| strip_prefix = "protobuf-" + PROTOBUF_PREVIOUS_RELEASE, |
| url = "https://github.com/protocolbuffers/protobuf/releases/download/v{0}/protobuf-{0}.tar.gz".format(PROTOBUF_PREVIOUS_RELEASE), |
| ) |