|
1 | | -module(name = "otel_sdk_x", version = "0.1") |
2 | | -bazel_dep(name = "curl", version = "8.8.0.bcr.1") |
| 1 | +module( |
| 2 | + name = "otel_sdk_x", |
| 3 | + version = "0.1", |
| 4 | +) |
| 5 | + |
3 | 6 | bazel_dep(name = "otel_sdk", version = "") |
4 | | -local_path_override(module_name = "otel_sdk", path = "..") |
| 7 | +local_path_override( |
| 8 | + module_name = "otel_sdk", |
| 9 | + path = "..", |
| 10 | +) |
| 11 | + |
| 12 | +## Almost copied verbatim from ../MODULE.bazel |
| 13 | + |
| 14 | +bazel_dep(name = "abseil-cpp", version = "20240722.0") |
| 15 | + |
| 16 | +#bazel_dep(name = "aspect_bazel_lib", version = "2.8.1") |
| 17 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 18 | +bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3") |
| 19 | +bazel_dep(name = "curl", version = "8.8.0.bcr.1") |
| 20 | + |
| 21 | +#bazel_dep(name = "depend_on_what_you_use", version = "0.4.0") |
| 22 | +bazel_dep(name = "google_benchmark", version = "1.8.5") #, dev_dependency = True) |
| 23 | +bazel_dep(name = "googletest", version = "1.15.2") #, dev_dependency = True) |
| 24 | +bazel_dep(name = "grpc", version = "1.66.0.bcr.1") #, repo_name = "com_github_grpc_grpc") |
| 25 | +single_version_override( |
| 26 | + module_name = "grpc", |
| 27 | + patch_strip = 1, |
| 28 | + # https://github.com/grpc/grpc/pull/37534 |
| 29 | + # https://github.com/grpc/grpc/pull/37534.diff |
| 30 | + patches = ["bazel/grpc_bzlmod.diff"], |
| 31 | +) |
| 32 | + |
| 33 | +bazel_dep(name = "nlohmann_json", version = "3.11.3") |
| 34 | +bazel_dep(name = "platforms", version = "0.0.10") |
| 35 | +bazel_dep(name = "rules_cc", version = "0.0.9") |
| 36 | +bazel_dep(name = "rules_pkg", version = "1.0.1") |
| 37 | +bazel_dep(name = "rules_proto", version = "6.0.2") |
| 38 | +bazel_dep(name = "zlib", version = "1.3.1.bcr.3") |
| 39 | + |
| 40 | +#bazel_dep(name = "opentracing-cpp", version = "1.6.0") |
| 41 | +bazel_dep(name = "rules_multitool", version = "0.12.0") |
| 42 | +bazel_dep(name = "opentelemetry-proto", version = "1.3.2") |
| 43 | +archive_override( |
| 44 | + module_name = "opentelemetry-proto", |
| 45 | + integrity = "sha256-wGnA2WE3zwBdNEEfpn3TtvH4xkrx5/sv4AiaQcQlrNc=", |
| 46 | + patch_strip = 1, |
| 47 | + # Copied from https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/opentelemetry-proto/1.3.1/patches |
| 48 | + patches = ["bazel/opentelemetry-proto.patch"], |
| 49 | + strip_prefix = "opentelemetry-proto-1.3.2", |
| 50 | + urls = "https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v1.3.2.tar.gz", |
| 51 | +) |
| 52 | + |
| 53 | +bazel_dep(name = "prometheus-cpp", version = "1.2.4") |
| 54 | +archive_override( |
| 55 | + module_name = "prometheus-cpp", |
| 56 | + integrity = "sha256-uElFYvmIrzXsElYbbrNS0Mvtfj99aKae2nhsZhCvxG4=", |
| 57 | + strip_prefix = "prometheus-cpp-6492e820cdff7e7345d46d82b43735aaea542098", |
| 58 | + urls = "https://github.com/jupp0r/prometheus-cpp/archive/6492e820cdff7e7345d46d82b43735aaea542098.zip", |
| 59 | +) |
5 | 60 |
|
6 | 61 | use_repo( |
7 | 62 | use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension"), |
8 | 63 | "local_config_cc", |
9 | 64 | ) |
| 65 | + |
| 66 | +# This is needed only for most of the `bazel mod xxx` functions to work. |
| 67 | +# |
| 68 | +# Otherwise it complaints with |
| 69 | +# |
| 70 | +# ERROR: in tag at https://bcr.bazel.build/modules/grpc-java/1.62.2/MODULE.bazel:89:15: no repository visible as |
| 71 | +# '@com_google_protobuf_javalite' to the repository '@@grpc-java+', but referenced by label |
| 72 | +# '@com_google_protobuf_javalite//:protobuf_javalite' in attribute 'target' of tag 'override'. |
| 73 | +# Is the module 'grpc-java' missing a bazel_dep or use_repo(..., "com_google_protobuf_javalite")?. |
| 74 | +# |
| 75 | +bazel_dep(name = "grpc-java", version = "1.64.0") |
0 commit comments