Skip to content

Commit b6bb95a

Browse files
Refactor dependency on embedded template file
1 parent 3aafd7d commit b6bb95a

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.bazelrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Enable Bzlmod for every Bazel command
2-
common --enable_bzlmod
2+
common --enable_bzlmod
3+
4+
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
5+
6+
test --test_output=errors

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bazel_dep(
2222
)
2323
bazel_dep(
2424
name = "protobuf",
25-
version = "27.1",
25+
version = "33.1",
2626
repo_name = "com_google_protobuf",
2727
)
2828
bazel_dep(

cel/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ go_library(
2121
"prompt.go",
2222
"validator.go",
2323
],
24-
embedsrcs = ["//cel/templates"],
24+
embedsrcs = ["templates/authoring.tmpl"],
2525
importpath = "github.com/google/cel-go/cel",
2626
visibility = ["//visibility:public"],
2727
deps = [
@@ -96,3 +96,8 @@ go_test(
9696
"@org_golang_google_protobuf//types/known/wrapperspb:go_default_library",
9797
],
9898
)
99+
100+
exports_files(
101+
["templates/authoring.tmpl"],
102+
visibility = ["//visibility:public"],
103+
)

cel/templates/BUILD.bazel

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)