Skip to content

Commit

Permalink
Remove reference to github.com/golang/protobuf (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdecks authored Jan 6, 2023
1 parent 1ec97b8 commit 46e0b05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/lyft/protoc-gen-star/v2
go 1.17

require (
github.com/golang/protobuf v1.5.2
github.com/spf13/afero v1.3.3
github.com/stretchr/testify v1.6.1
golang.org/x/tools v0.1.12
Expand Down
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
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=
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
Expand Down
8 changes: 5 additions & 3 deletions message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"errors"
"testing"

desc "github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/ptypes/any"
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protodesc"
descriptor "google.golang.org/protobuf/types/descriptorpb"
any "google.golang.org/protobuf/types/known/anypb"
)

func TestMsg_Name(t *testing.T) {
Expand Down Expand Up @@ -418,7 +418,9 @@ func TestMsg_ChildAtPath(t *testing.T) {
}

func TestMsg_WellKnownType(t *testing.T) {
fd, md := desc.ForMessage(&any.Any{})
d := (&any.Any{}).ProtoReflect().Descriptor()
fd := protodesc.ToFileDescriptorProto(d.ParentFile())
md := protodesc.ToDescriptorProto(d)
p := &pkg{fd: fd}
f := &file{desc: fd}
m := &msg{desc: md}
Expand Down
2 changes: 1 addition & 1 deletion tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
package tools

import (
_ "github.com/golang/protobuf/protoc-gen-go"
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
)

0 comments on commit 46e0b05

Please sign in to comment.