From 67d76f97cb070d99f19c4729e6c0d69aa797391e Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Sat, 17 Aug 2024 19:48:37 -0400 Subject: [PATCH] Add a default expr target --- BUILD.bazel | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/BUILD.bazel b/BUILD.bazel index f631b6df..0bbe9ed7 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,34 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 + +go_library( + name = "expr", + srcs = [ + "checked.pb.go", + "eval.pb.go", + "explain.pb.go", + "syntax.pb.go", + "value.pb.go", + ], + importpath = "cel.dev/expr", + visibility = ["//visibility:public"], + deps = [ + "//proto/cel/expr:google_rpc_status_go_proto", + "@org_golang_google_protobuf//reflect/protoreflect", + "@org_golang_google_protobuf//runtime/protoimpl", + "@org_golang_google_protobuf//types/known/anypb", + "@org_golang_google_protobuf//types/known/durationpb", + "@org_golang_google_protobuf//types/known/emptypb", + "@org_golang_google_protobuf//types/known/structpb", + "@org_golang_google_protobuf//types/known/timestamppb", + ], +) + +alias( + name = "go_default_library", + actual = ":expr", + visibility = ["//visibility:public"], +)