From 30a2fb134e367b9d8c59046c12742e4e2406d940 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 13 Mar 2023 09:44:45 +0100 Subject: [PATCH] tarball: Copy more "google.golang.org/protobuf" modules to vendor. This is required for the "protoc-gen-go" to be able to compile. Auto-detection only works for modules that are imported by the main module. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ba8621f..ace19e1 100644 --- a/Makefile +++ b/Makefile @@ -159,6 +159,10 @@ vendor: go.mod go.sum common [ -d "$(GOPATH)/pkg/mod/google.golang.org/grpc/cmd/protoc-gen-go-grpc@$(PROTOC_GEN_GRPC_VERSION)" ] || exit 1; \ cp -rf --no-preserve=mode $(GOPATH)/pkg/mod/google.golang.org/grpc/cmd/protoc-gen-go-grpc@$(PROTOC_GEN_GRPC_VERSION)/* $(VENDORDIR)/google.golang.org/grpc/cmd/protoc-gen-go-grpc/; \ cp -rf --no-preserve=mode $$PROTOBUF_DIR/cmd/ $(VENDORDIR)/google.golang.org/protobuf/; \ + cp -rf --no-preserve=mode $$PROTOBUF_DIR/internal/ $(VENDORDIR)/google.golang.org/protobuf/; \ + cp -rf --no-preserve=mode $$PROTOBUF_DIR/reflect/ $(VENDORDIR)/google.golang.org/protobuf/; \ + find $(VENDORDIR)/google.golang.org/protobuf/ -name "*_test.go" -delete; \ + find $(VENDORDIR)/google.golang.org/protobuf/ -name "testdata" | xargs rm -r; \ tarball: vendor git archive \