-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUILD] Add support for bzlmod (#2608)
* Add support for bzlmod This adds support for bzlmod, which is bazel's new dependency resolution system. Theoretically we could now remove the previous dependency management configuration which required flattening all the dependencies, but I left it here for now for users using old versions of bazel.
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
*.app | ||
|
||
# Bazel files | ||
MODULE.bazel.lock | ||
/bazel-* | ||
|
||
# Mac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
module( | ||
name = "opentelemetry-cpp", | ||
version = "0", | ||
compatibility_level = 0, | ||
repo_name = "io_opentelemetry_cpp", | ||
) | ||
|
||
bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "com_google_absl") | ||
bazel_dep(name = "bazel_skylib", version = "1.5.0") | ||
bazel_dep(name = "curl", version = "8.4.0") | ||
bazel_dep(name = "grpc", version = "1.62.1", repo_name = "com_github_grpc_grpc") | ||
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json") | ||
bazel_dep(name = "opentelemetry-proto", version = "1.3.1", repo_name = "com_github_opentelemetry_proto") | ||
bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing") | ||
bazel_dep(name = "platforms", version = "0.0.8") | ||
bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp") | ||
bazel_dep(name = "protobuf", version = "26.0", repo_name = "com_google_protobuf") | ||
bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | ||
bazel_dep(name = "zlib", version = "1.3.1.bcr.1") | ||
|
||
bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") | ||
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Disables the default WORKSPACE when using bzlmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
025f42f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp api Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_SpinLockThrashing/2/process_time/real_time
0.5328941904554618
ms/iter0.18521726440271566
ms/iter2.88
This comment was automatically generated by workflow using github-action-benchmark.