Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the Bazel WORKSPACE to support granular go-genproto targets #287

Merged
merged 1 commit into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ http_archive(
],
)

# googleapis as of 05/26/2023
http_archive(
name = "com_google_googleapis",
sha256 = "1f742f6cafe616fe73302db010e0b7ee6579cb1ce06010427b7d0995cbd80ce4",
strip_prefix = "googleapis-6a813acf535e4746fa4a135ce23547bb6425c26d",
strip_prefix = "googleapis-07c27163ac591955d736f3057b1619ece66f5b99",
sha256 = "bd8e735d881fb829751ecb1a77038dda4a8d274c45490cb9fcf004583ee10571",
urls = [
"https://github.com/googleapis/googleapis/archive/6a813acf535e4746fa4a135ce23547bb6425c26d.tar.gz",
"https://github.com/googleapis/googleapis/archive/07c27163ac591955d736f3057b1619ece66f5b99.tar.gz",
],
)

Expand Down Expand Up @@ -104,11 +105,22 @@ switched_rules_by_language(
# Do *not* call *_dependencies(), etc, yet. See comment at the end.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

()


# Generated Google APIs protos for Golang
# Generated Google APIs protos for Golang 05/25/2023
go_repository(
name = "org_golang_google_genproto",
build_file_proto_mode = "disable_global",
commit = "69f6226f97e558dbaa68715071622af0d86b3a17",
importpath = "google.golang.org/genproto",
name = "org_golang_google_genproto_googleapis_api",
build_file_proto_mode = "disable_global",
importpath = "google.golang.org/genproto/googleapis/api",
sum = "h1:m8v1xLLLzMe1m5P+gCTF8nJB9epwZQUBERm20Oy1poQ=",
version = "v0.0.0-20230525234035-dd9d682886f9",
)

# Generated Google APIs protos for Golang 05/25/2023
go_repository(
name = "org_golang_google_genproto_googleapis_rpc",
build_file_proto_mode = "disable_global",
importpath = "google.golang.org/genproto/googleapis/rpc",
sum = "h1:0nDDozoAU19Qb2HwhXadU8OcsiO/09cnTqhUtq2MEOM=",
version = "v0.0.0-20230525234030-28d5490b6b19",
)

# gRPC deps
Expand Down
2 changes: 1 addition & 1 deletion proto/test/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ go_proto_library(
],
importpath = "github.com/google/cel-spec/proto/test/v1/testpb",
deps = [
"@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library",
],
)
6 changes: 3 additions & 3 deletions tests/envcheck/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ go_library(
deps = [
"//tools/celrpc:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_rpc//status:go_default_library",
"@org_golang_google_grpc//codes:go_default_library",
"@org_golang_google_grpc//status:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
Expand Down
6 changes: 3 additions & 3 deletions tests/simple/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ go_library(
"//proto/test/v1:testpb_go_proto",
"//tools/celrpc:go_default_library",
"@org_golang_google_protobuf//encoding/prototext:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/conformance/v1alpha1:go_default_library",
],
)

Expand All @@ -37,7 +37,7 @@ go_test(
"@org_golang_google_protobuf//encoding/prototext:go_default_library",
"@org_golang_google_protobuf//types/known/anypb:go_default_library",
"@org_golang_google_protobuf//types/known/structpb:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library",
"//proto/test/v1:testpb_go_proto",
"//proto/test/v1/proto2:test_all_types_go_proto",
"//proto/test/v1/proto3:test_all_types_go_proto",
Expand Down
2 changes: 1 addition & 1 deletion tools/celrpc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ go_library(
],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

] ,

importpath = "github.com/google/cel-spec/tools/celrpc",
deps = [
"@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//reflection:go_default_library",
"@org_golang_google_protobuf//encoding/protojson:go_default_library",
Expand Down
6 changes: 3 additions & 3 deletions tools/celrpc/testpipeimpl/main/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ go_binary(
name="main",
srcs = ["main.go"],
deps = [
"@org_golang_google_genproto//googleapis/api/expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_protobuf//encoding/protojson:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
"@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
"@org_golang_google_genproto//googleapis/rpc/status:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_api//expr/conformance/v1alpha1:go_default_library",
"@org_golang_google_genproto_googleapis_rpc//status:go_default_library",
"@org_golang_google_grpc//codes:go_default_library"
]
)