Browse Source

remove github.com/golang/protobuf/proto

pull/5384/head
chrislu 9 months ago
parent
commit
1516e0249f
  1. 3
      go.mod
  2. 2
      go.sum
  3. 5
      weed/shell/command_volume_list_test.go

3
go.mod

@ -38,7 +38,7 @@ require (
github.com/gocql/gocql v1.6.0 github.com/gocql/gocql v1.6.0
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect github.com/golang/snappy v0.0.4 // indirect
github.com/google/btree v1.1.2 github.com/google/btree v1.1.2
github.com/google/uuid v1.6.0 github.com/google/uuid v1.6.0
@ -151,7 +151,6 @@ require (
github.com/hashicorp/raft v1.6.0 github.com/hashicorp/raft v1.6.0
github.com/hashicorp/raft-boltdb/v2 v2.3.0 github.com/hashicorp/raft-boltdb/v2 v2.3.0
github.com/orcaman/concurrent-map/v2 v2.0.1 github.com/orcaman/concurrent-map/v2 v2.0.1
github.com/puzpuzpuz/xsync/v2 v2.5.1
github.com/rabbitmq/amqp091-go v1.9.0 github.com/rabbitmq/amqp091-go v1.9.0
github.com/rclone/rclone v1.65.2 github.com/rclone/rclone v1.65.2
github.com/rdleal/intervalst v1.3.0 github.com/rdleal/intervalst v1.3.0

2
go.sum

@ -789,8 +789,6 @@ github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGK
github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g=
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 h1:Y258uzXU/potCYnQd1r6wlAnoMB68BiCkCcCnKx1SH8= github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 h1:Y258uzXU/potCYnQd1r6wlAnoMB68BiCkCcCnKx1SH8=
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8/go.mod h1:bSJjRokAHHOhA+XFxplld8w2R/dXLH7Z3BZ532vhFwU= github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8/go.mod h1:bSJjRokAHHOhA+XFxplld8w2R/dXLH7Z3BZ532vhFwU=
github.com/puzpuzpuz/xsync/v2 v2.5.1 h1:mVGYAvzDSu52+zaGyNjC+24Xw2bQi3kTr4QJ6N9pIIU=
github.com/puzpuzpuz/xsync/v2 v2.5.1/go.mod h1:gD2H2krq/w52MfPLE+Uy64TzJDVY7lP2znR9qmR35kU=
github.com/quic-go/qtls-go1-20 v0.3.4 h1:MfFAPULvst4yoMgY9QmtpYmfij/em7O8UUi+bNVm7Cg= github.com/quic-go/qtls-go1-20 v0.3.4 h1:MfFAPULvst4yoMgY9QmtpYmfij/em7O8UUi+bNVm7Cg=
github.com/quic-go/qtls-go1-20 v0.3.4/go.mod h1:X9Nh97ZL80Z+bX/gUXMbipO6OxdiDi58b/fMC9mAL+k= github.com/quic-go/qtls-go1-20 v0.3.4/go.mod h1:X9Nh97ZL80Z+bX/gUXMbipO6OxdiDi58b/fMC9mAL+k=
github.com/quic-go/quic-go v0.39.3 h1:o3YB6t2SR+HU/pgwF29kJ6g4jJIJEwEZ8CKia1h1TKg= github.com/quic-go/quic-go v0.39.3 h1:o3YB6t2SR+HU/pgwF29kJ6g4jJIJEwEZ8CKia1h1TKg=

5
weed/shell/command_volume_list_test.go

@ -6,7 +6,8 @@ import (
"github.com/seaweedfs/seaweedfs/weed/storage/types" "github.com/seaweedfs/seaweedfs/weed/storage/types"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
// "google.golang.org/protobuf/proto" // "google.golang.org/protobuf/proto"
"github.com/golang/protobuf/proto"
//"github.com/golang/protobuf/proto"
jsonpb "google.golang.org/protobuf/encoding/protojson"
"strconv" "strconv"
"strings" "strings"
"testing" "testing"
@ -91,7 +92,7 @@ func parseOutput(output string) *master_pb.TopologyInfo {
case "volume": case "volume":
volumeLine := line[len("volume "):] volumeLine := line[len("volume "):]
volume := &master_pb.VolumeInformationMessage{} volume := &master_pb.VolumeInformationMessage{}
proto.UnmarshalText(volumeLine, volume)
jsonpb.Unmarshal([]byte(volumeLine), volume)
disk.VolumeInfos = append(disk.VolumeInfos, volume) disk.VolumeInfos = append(disk.VolumeInfos, volume)
case "ec": case "ec":
ecVolumeLine := line[len("ec volume "):] ecVolumeLine := line[len("ec volume "):]

Loading…
Cancel
Save