| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| module( |
| name = 'brpc-example', |
| version = '1.17.0', |
| compatibility_level = 1, |
| ) |
| |
| bazel_dep(name = 'protobuf', version = '27.3', repo_name = 'com_google_protobuf') |
| bazel_dep(name = 'brpc', version = '1.17.0', repo_name = 'apache_brpc') |
| |
| local_path_override( |
| module_name = "brpc", |
| path = "../..", |
| ) |
| |
| # Overrides only take effect in the root module. When this example is built, |
| # `brpc-example` is the root module and `brpc` is just a dependency, so the |
| # same two overrides in brpc's root MODULE.bazel are ignored and have to be |
| # repeated here. Keep them in sync with the root MODULE.bazel. |
| # |
| # leveldb is published only in the secretflow registry — not in BCR, nor in |
| # the babylon / apache-brpc registries added by .bazelrc. And brpc declares |
| # `openssl 3.3.2`, which exists there only as `3.3.2.bcr.1`, hence the |
| # version rewrite. |
| |
| single_version_override( |
| module_name = "leveldb", |
| registry = "https://raw.githubusercontent.com/secretflow/bazel-registry/main", |
| ) |
| |
| single_version_override( |
| module_name = "openssl", |
| version = "3.3.2.bcr.1", |
| registry = "https://raw.githubusercontent.com/secretflow/bazel-registry/main", |
| ) |