Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored Apr 5, 2024
1 parent 1d0f677 commit b3d0016
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 0 deletions.
26 changes: 26 additions & 0 deletions modules/opencensus-proto/0.4.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module(
name = "opencensus-proto",
version = "0.4.1",
compatibility_level = 1,
)

bazel_dep(
name = "grpc",
version = "1.41.0",
repo_name = "com_github_grpc_grpc",
)
bazel_dep(
name = "protobuf",
version = "21.7",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "rules_go",
version = "0.45.1",
repo_name = "io_bazel_rules_go",
)
bazel_dep(
name = "rules_proto",
version = "5.3.0-21.7",
)
# -- bazel_dep definitions -- #
12 changes: 12 additions & 0 deletions modules/opencensus-proto/0.4.1/patches/build_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/opencensus/proto/trace/v1/BUILD.bazel b/opencensus/proto/trace/v1/BUILD.bazel
index 0beb6d8..b11f455 100644
--- a/opencensus/proto/trace/v1/BUILD.bazel
+++ b/opencensus/proto/trace/v1/BUILD.bazel
@@ -77,7 +77,6 @@ py_proto_library(
srcs = ["trace.proto"],
deps = [
"//opencensus/proto/resource/v1:resource_proto_py",
- "@com_google_protobuf//:protobuf_python",
],
)

29 changes: 29 additions & 0 deletions modules/opencensus-proto/0.4.1/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--- a/MODULE.bazel
+++ a/MODULE.bazel
@@ -0,0 +1,26 @@
+module(
+ name = "opencensus-proto",
+ version = "0.4.1",
+ compatibility_level = 1,
+)
+
+bazel_dep(
+ name = "grpc",
+ version = "1.41.0",
+ repo_name = "com_github_grpc_grpc",
+)
+bazel_dep(
+ name = "protobuf",
+ version = "21.7",
+ repo_name = "com_google_protobuf",
+)
+bazel_dep(
+ name = "rules_go",
+ version = "0.45.1",
+ repo_name = "io_bazel_rules_go",
+)
+bazel_dep(
+ name = "rules_proto",
+ version = "5.3.0-21.7",
+)
+# -- bazel_dep definitions -- #
24 changes: 24 additions & 0 deletions modules/opencensus-proto/0.4.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@opencensus-proto//opencensus/proto/agent/common/v1:common_proto'
- '@opencensus-proto//opencensus/proto/agent/metrics/v1:metrics_service_proto'
- '@opencensus-proto//opencensus/proto/agent/trace/v1:trace_service_proto'
- '@opencensus-proto//opencensus/proto/metrics/v1:metrics_proto'
- '@opencensus-proto//opencensus/proto/resource/v1:resource_proto'
- '@opencensus-proto//opencensus/proto/stats/v1:stats_proto'
- '@opencensus-proto//opencensus/proto/trace/v1:trace_proto'
- '@opencensus-proto//opencensus/proto/trace/v1:trace_config_proto'
10 changes: 10 additions & 0 deletions modules/opencensus-proto/0.4.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/census-instrumentation/opencensus-proto/archive/refs/tags/v0.4.1.tar.gz",
"integrity": "sha256-49iff57YTJtu7oGMLpMGlQUZQCv4A2mLFcMQt3yi8PM=",
"strip_prefix": "opencensus-proto-0.4.1/src",
"patches": {
"build_dot_bazel.patch": "sha256-Nfwo77xWETU+N8IrXgEFe6j+n0pk7kyAosq+LIokbcc=",
"module_dot_bazel.patch": "sha256-V+2X4CHqvf8kShzDxQsp+KhpZYmgBRxJID2IUo7NkqU="
},
"patch_strip": 1
}
16 changes: 16 additions & 0 deletions modules/opencensus-proto/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/census-instrumentation/opencensus-proto",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:census-instrumentation/opencensus-proto"
],
"versions": [
"0.4.1"
],
"yanked_versions": {}
}

0 comments on commit b3d0016

Please sign in to comment.