Skip to content

Commit

Permalink
go: Add bb-remote-execution as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
minor-fixes committed Apr 24, 2023
1 parent 4b4ba46 commit 6e69319
Show file tree
Hide file tree
Showing 11 changed files with 168,015 additions and 3,422 deletions.
12 changes: 6 additions & 6 deletions bazel/dependencies/datastore_query_toproto_exported.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git a/query.go b/query.go
index f2e6d9c2a..1d6c69a6d 100644
index 0c3fe01db8..57f63f165a 100644
--- a/query.go
+++ b/query.go
@@ -331,6 +331,12 @@ func (q *Query) End(c Cursor) *Query {
return q
@@ -380,6 +380,12 @@ func (q *Query) toRunQueryRequest(req *pb.RunQueryRequest) error {
return nil
}

+// ENFABRICA PATCH
+// Export toProto for use in unit tests
+func (q *Query) ToProto(req *pb.RunQueryRequest) error {
+ return q.toProto(req)
+ return q.toRunQueryRequest(req)
+}
+
// toProto converts the query to a protocol buffer.
func (q *Query) toProto(req *pb.RunQueryRequest) error {
func (q *Query) toProto() (*pb.Query, error) {
if len(q.projection) != 0 && q.keysOnly {
return nil, errors.New("datastore: query cannot both project and be keys-only")
15 changes: 15 additions & 0 deletions bazel/dependencies/googleapis/add_directives.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff -urN b/BUILD.bazel c/BUILD.bazel
--- b/BUILD.bazel 1969-12-31 16:00:00
+++ c/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,6 @@
+# gazelle:go_naming_convention import_alias
+# gazelle:proto package
+# gazelle:proto_group go_package
+# gazelle:exclude gapic
+# gazelle:exclude third_party
+# gazelle:exclude google/example/endpointsapis/goapp
diff -urN b/google/BUILD.bazel c/google/BUILD.bazel
--- b/google/BUILD.bazel 1969-12-31 16:00:00
+++ c/google/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1 @@
+# gazelle:prefix google.golang.org/genproto/googleapis
Loading

0 comments on commit 6e69319

Please sign in to comment.