calm-librarian-70577
10/15/2024, 9:22 AM11:11:48.11 [ERROR] 1 Exception encountered:
Engine traceback:
in `export-codegen` goal
ProcessExecutionFailure: Process 'Build Go gRPC protobuf plugin for `protoc`.' failed with exit code 1.
stdout:
stderr:
go: <http://google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0|google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0>: loading deprecation for <http://google.golang.org/grpc/cmd/protoc-gen-go-grpc|google.golang.org/grpc/cmd/protoc-gen-go-grpc>: module lookup disabled by GOPROXY=off
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
I've created a small reproduction repo here: https://github.com/rdeknijf/pants-repro-protoc
So, export-codegen
doesn't work.
Also, the docs describe that Pants auto-regenerates any protobuf output. But doesn't. If you remove the pkg/person.pb.go
file, and run pants test ::
tests fail.
If you run protoc --go_out=. --go_opt=paths=source_relative person.proto
(in pkg), tests are good again.
I'm encountering this on multiple machines (Linux and Mac). Anyone any ideas?