bazel: ai patches

This commit is contained in:
Moritz Sanft 2025-10-28 10:02:57 +01:00
parent 4e84a71bf3
commit 5f81fd6144
7 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,7 @@
exports_files([
"wellknown.patch",
"register.patch",
"tcg.patch",
"extract.patch",
"ccel.patch",
])

View file

@ -0,0 +1,11 @@
--- ccel/BUILD.bazel
+++ ccel/BUILD.bazel
@@ -9,6 +9,7 @@
importpath = "github.com/google/go-eventlog/ccel",
visibility = ["//visibility:public"],
deps = [
"//extract",
+ "//proto/state",
"//register",
"//tcg",
],

View file

@ -0,0 +1,10 @@
--- extract/BUILD.bazel
+++ extract/BUILD.bazel
@@ -11,6 +11,7 @@
importpath = "github.com/google/go-eventlog/extract",
visibility = ["//visibility:public"],
deps = [
+ "//proto/state",
"//tcg",
"//wellknown",
"@com_github_google_go_tpm//legacy/tpm2",

View file

@ -0,0 +1,14 @@
--- register/BUILD.bazel
+++ register/BUILD.bazel
@@ -9,7 +9,10 @@
],
importpath = "github.com/google/go-eventlog/register",
visibility = ["//visibility:public"],
- deps = ["@com_github_google_go_tpm//legacy/tpm2"],
+ deps = [
+ "//proto/state",
+ "@com_github_google_go_tpm//legacy/tpm2",
+ ],
)
alias(

View file

@ -0,0 +1,10 @@
--- tcg/BUILD.bazel
+++ tcg/BUILD.bazel
@@ -9,6 +9,7 @@
importpath = "github.com/google/go-eventlog/tcg",
visibility = ["//visibility:public"],
deps = [
+ "//proto/state",
"//register",
"@com_github_google_go_tpm//legacy/tpm2",
],

View file

@ -0,0 +1,12 @@
--- wellknown/BUILD.bazel
+++ wellknown/BUILD.bazel
@@ -13,6 +13,9 @@
],
importpath = "github.com/google/go-eventlog/wellknown",
visibility = ["//visibility:public"],
+ deps = [
+ "//proto/state",
+ ],
)
alias(

View file

@ -206,3 +206,13 @@ go_deps.gazelle_override(
build_file_generation = "on",
path = "github.com/cncf/xds/go",
)
go_deps.module_override(
patches = [
"//3rdparty/bazel/com_github_google_go_eventlog:wellknown.patch",
"//3rdparty/bazel/com_github_google_go_eventlog:register.patch",
"//3rdparty/bazel/com_github_google_go_eventlog:tcg.patch",
"//3rdparty/bazel/com_github_google_go_eventlog:extract.patch",
"//3rdparty/bazel/com_github_google_go_eventlog:ccel.patch",
],
path = "github.com/google/go-eventlog",
)