Skip to content

Commit 8f6182d

Browse files
pfi79denyeart
authored andcommitted
change github.com/mitchellh/mapstructure to github.com/go-viper/mapstructure/v2 v2.2.1
the author of the project archived it and blessed fork to accompany it further https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc mitchellh/mapstructure#349 Signed-off-by: Fedor Partanskiy <[email protected]>
1 parent d9ca702 commit 8f6182d

File tree

12 files changed

+142
-45
lines changed

12 files changed

+142
-45
lines changed

common/viperutil/config_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
"strconv"
1919
"strings"
2020

21+
"github.com/go-viper/mapstructure/v2"
2122
"github.com/hyperledger/fabric-lib-go/bccsp/factory"
2223
"github.com/hyperledger/fabric-lib-go/common/flogging"
23-
"github.com/mitchellh/mapstructure"
2424
"github.com/pkg/errors"
2525
"gopkg.in/yaml.v2"
2626
)

core/handlers/library/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package library
99
import (
1010
"time"
1111

12-
"github.com/mitchellh/mapstructure"
12+
"github.com/go-viper/mapstructure/v2"
1313
"github.com/spf13/viper"
1414
)
1515

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ require (
1212
github.com/davecgh/go-spew v1.1.1
1313
github.com/fsouza/go-dockerclient v1.12.0
1414
github.com/go-kit/kit v0.13.0
15+
github.com/go-viper/mapstructure/v2 v2.2.1
1516
github.com/gorilla/handlers v1.5.2
1617
github.com/gorilla/mux v1.8.1
1718
github.com/hyperledger-labs/SmartBFT v0.0.0-20240916013553-852e5be5889b
@@ -21,7 +22,6 @@ require (
2122
github.com/hyperledger/fabric-protos-go-apiv2 v0.3.4
2223
github.com/kr/pretty v0.3.1
2324
github.com/miekg/pkcs11 v1.1.1
24-
github.com/mitchellh/mapstructure v1.5.0
2525
github.com/onsi/ginkgo/v2 v2.20.2
2626
github.com/onsi/gomega v1.34.2
2727
github.com/pkg/errors v0.9.1
@@ -69,7 +69,6 @@ require (
6969
github.com/go-logfmt/logfmt v0.5.1 // indirect
7070
github.com/go-logr/logr v1.4.2 // indirect
7171
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
72-
github.com/go-viper/mapstructure/v2 v2.0.0 // indirect
7372
github.com/gogo/protobuf v1.3.2 // indirect
7473
github.com/golang/protobuf v1.5.4 // indirect
7574
github.com/golang/snappy v0.0.4 // indirect
@@ -85,6 +84,7 @@ require (
8584
github.com/mattn/go-isatty v0.0.19 // indirect
8685
github.com/mattn/go-runewidth v0.0.15 // indirect
8786
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
87+
github.com/mitchellh/mapstructure v1.5.0 // indirect
8888
github.com/mmcloughlin/addchain v0.4.0 // indirect
8989
github.com/moby/docker-image-spec v1.3.1 // indirect
9090
github.com/moby/patternmatcher v0.6.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,8 @@ github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg78
770770
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
771771
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
772772
github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
773-
github.com/go-viper/mapstructure/v2 v2.0.0 h1:dhn8MZ1gZ0mzeodTG3jt5Vj/o87xZKuNAprG2mQfMfc=
774-
github.com/go-viper/mapstructure/v2 v2.0.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
773+
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
774+
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
775775
github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
776776
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
777777
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=

internal/peer/common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17+
"github.com/go-viper/mapstructure/v2"
1718
"github.com/hyperledger/fabric-lib-go/bccsp"
1819
"github.com/hyperledger/fabric-lib-go/bccsp/factory"
1920
"github.com/hyperledger/fabric-lib-go/common/flogging"
@@ -26,7 +27,6 @@ import (
2627
"github.com/hyperledger/fabric/msp"
2728
mspmgmt "github.com/hyperledger/fabric/msp/mgmt"
2829
"github.com/hyperledger/fabric/protoutil"
29-
"github.com/mitchellh/mapstructure"
3030
"github.com/pkg/errors"
3131
"github.com/spf13/cobra"
3232
"github.com/spf13/viper"

internal/peer/node/start_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import (
1212
"testing"
1313
"time"
1414

15+
"github.com/go-viper/mapstructure/v2"
1516
"github.com/hyperledger/fabric-protos-go-apiv2/common"
1617
"github.com/hyperledger/fabric/core/handlers/library"
1718
"github.com/hyperledger/fabric/core/testutil"
1819
"github.com/hyperledger/fabric/internal/peer/node/mock"
1920
msptesttools "github.com/hyperledger/fabric/msp/mgmt/testtools"
20-
"github.com/mitchellh/mapstructure"
2121
. "github.com/onsi/gomega"
2222
"github.com/spf13/viper"
2323
"github.com/stretchr/testify/require"

orderer/common/localconfig/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"testing"
1111
"time"
1212

13+
"github.com/go-viper/mapstructure/v2"
1314
"github.com/hyperledger/fabric/core/config/configtest"
14-
"github.com/mitchellh/mapstructure"
1515
"github.com/stretchr/testify/require"
1616
)
1717

orderer/consensus/etcdraft/consenter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"time"
1313

1414
"code.cloudfoundry.org/clock"
15+
"github.com/go-viper/mapstructure/v2"
1516
"github.com/hyperledger/fabric-lib-go/bccsp"
1617
"github.com/hyperledger/fabric-lib-go/common/flogging"
1718
"github.com/hyperledger/fabric-lib-go/common/metrics"
@@ -26,7 +27,6 @@ import (
2627
"github.com/hyperledger/fabric/orderer/common/types"
2728
"github.com/hyperledger/fabric/orderer/consensus"
2829
"github.com/hyperledger/fabric/protoutil"
29-
"github.com/mitchellh/mapstructure"
3030
"github.com/pkg/errors"
3131
"go.etcd.io/etcd/raft/v3"
3232
"google.golang.org/protobuf/proto"

orderer/consensus/smartbft/consenter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"sync/atomic"
1818
"time"
1919

20+
"github.com/go-viper/mapstructure/v2"
2021
"github.com/hyperledger-labs/SmartBFT/pkg/api"
2122
"github.com/hyperledger-labs/SmartBFT/pkg/wal"
2223
"github.com/hyperledger/fabric-lib-go/bccsp"
@@ -35,7 +36,6 @@ import (
3536
"github.com/hyperledger/fabric/orderer/consensus"
3637
"github.com/hyperledger/fabric/orderer/consensus/smartbft/util"
3738
"github.com/hyperledger/fabric/protoutil"
38-
"github.com/mitchellh/mapstructure"
3939
"github.com/pkg/errors"
4040
"go.uber.org/zap"
4141
"google.golang.org/protobuf/proto"

vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go

Lines changed: 57 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)