From 5a07a662c19abe934116fb16995cda048712c6da Mon Sep 17 00:00:00 2001 From: Joe Tsai Date: Sat, 20 Mar 2021 22:05:13 -0700 Subject: [PATCH] all: deprecate the module Use the new deprecation feature to mark this module as deprecated. See https://golang.org/issue/40357. Considerations: * google.golang.org/protobuf/cmd/protoc-gen-go@v1.25.0 and below used to generate a hard dependency on github.com/golang/protobuf, which would be frustrating since it would force an explicit dependency on a deprecated module. However, that is no longer the case in v1.26.0. * google.golang.org/protobuf and github.com/golang/protobuf have a cyclic dependency on each other. However, this should not be a problem since proposal 40357 only marks direct dependencies in the go.mod file, rather than all transitive dependencies in the go.sum file. --- go.mod | 1 + 1 file changed, 1 insertion(+) diff --git a/go.mod b/go.mod index 3bee65aa36..6cac17b113 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,4 @@ +// Deprecated: Use the "google.golang.org/protobuf" module instead. module github.com/golang/protobuf go 1.9