From 16fe07435a6250909d53354d2828260d90fa3401 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 24 Apr 2026 00:50:59 +0000 Subject: [PATCH 1/2] test: inject invalid plain text to break go build --- protoc-gen-grpc-gateway/internal/gengateway/generator.go | 1 + protoc-gen-grpc-gateway/main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/protoc-gen-grpc-gateway/internal/gengateway/generator.go b/protoc-gen-grpc-gateway/internal/gengateway/generator.go index 08efcc0..07a8bf2 100644 --- a/protoc-gen-grpc-gateway/internal/gengateway/generator.go +++ b/protoc-gen-grpc-gateway/internal/gengateway/generator.go @@ -1,4 +1,5 @@ package gengateway +This is intentionally broken plain text that will cause a compile error. import ( "errors" diff --git a/protoc-gen-grpc-gateway/main.go b/protoc-gen-grpc-gateway/main.go index fca2f83..9b1b28c 100644 --- a/protoc-gen-grpc-gateway/main.go +++ b/protoc-gen-grpc-gateway/main.go @@ -8,6 +8,7 @@ // // See README.md for more details. package main +This is intentionally broken plain text that will cause a compile error. import ( "flag" From 438addf9ccffbba20aa56c57cf4ecab86b032ecb Mon Sep 17 00:00:00 2001 From: Sourcegraph Egg Date: Fri, 24 Apr 2026 01:00:55 +0000 Subject: [PATCH 2/2] fix: wrap injected plain text in Go doc comment to restore go build --- protoc-gen-grpc-gateway/internal/gengateway/generator.go | 2 +- protoc-gen-grpc-gateway/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protoc-gen-grpc-gateway/internal/gengateway/generator.go b/protoc-gen-grpc-gateway/internal/gengateway/generator.go index 07a8bf2..d4871bb 100644 --- a/protoc-gen-grpc-gateway/internal/gengateway/generator.go +++ b/protoc-gen-grpc-gateway/internal/gengateway/generator.go @@ -1,5 +1,5 @@ package gengateway -This is intentionally broken plain text that will cause a compile error. +// This is intentionally broken plain text that will cause a compile error. import ( "errors" diff --git a/protoc-gen-grpc-gateway/main.go b/protoc-gen-grpc-gateway/main.go index 9b1b28c..4c3b48e 100644 --- a/protoc-gen-grpc-gateway/main.go +++ b/protoc-gen-grpc-gateway/main.go @@ -8,7 +8,7 @@ // // See README.md for more details. package main -This is intentionally broken plain text that will cause a compile error. +// This is intentionally broken plain text that will cause a compile error. import ( "flag"