Skip to content

Commit

Permalink
all: add weak dependency on github.com/golang/protobuf
Browse files Browse the repository at this point in the history
Add back the weak dependency on github.com/golang/protobuf.

Change-Id: I2e6fabbe2cac3b694fb56a86bb3aa85cc8615b42
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/262684
Trust: Joe Tsai <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
  • Loading branch information
dsnet committed Mar 18, 2021
1 parent bdf6e19 commit 41ef85a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module google.golang.org/protobuf

go 1.9

require github.com/google/go-cmp v0.5.5
require (
github.com/golang/protobuf v1.5.0
github.com/google/go-cmp v0.5.5
)
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
8 changes: 4 additions & 4 deletions internal/weakdeps/weakdeps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
package weakdeps

import (
// Ensure that any program using "github.com/golang/protobuf"
// uses a version that wraps this module so that there is a
// unified view on what protobuf types are globally registered.
// _ "github.com/golang/protobuf/proto" // TODO: add this back
// Ensure that any program using "github.com/golang/protobuf"
// uses a version that wraps this module so that there is a
// unified view on what protobuf types are globally registered.
_ "github.com/golang/protobuf/proto"
)

0 comments on commit 41ef85a

Please sign in to comment.