In the latest version of protoc-gen-go, the hard dependency on the v1 protobuf api (github.com/golang/protobuf) has been removed. I noticed that this project isn't using any v1 APIs, so by regenerating the testproto/testproto.pb.go file it will be possible to further clean up the go.mod dependencies.
I did need to update the go_package setting to add a full module path for protoc to work:
In the latest version of protoc-gen-go, the hard dependency on the v1 protobuf api (github.com/golang/protobuf) has been removed. I noticed that this project isn't using any v1 APIs, so by regenerating the testproto/testproto.pb.go file it will be possible to further clean up the go.mod dependencies.
I did need to update the go_package setting to add a full module path for protoc to work: