Skip to content

Commit 23f34c7

Browse files
dolmenmjuraga
authored andcommitted
BUILD/MINOR: upgrade dependency mapstructure to supported fork
Replace github.com/mitchellh/mapstructure with github.com/go-viper/mapstructure/v2. Rationale: Module github.com/mitchellh/mapstructure isn't supported anymore. Announcement: https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc The blessed fork is at github.com/go-viper/mapstructure/v2. Note: github.com/mitchellh/mapstructure is still referenced in dependencies of go-openapi packages, but this is already being fixed (see go-openapi/strfmt#157 ) and will be released with the next github.com/go-openapi/strfmt. Signed-off-by: Olivier Mengué <[email protected]>
1 parent 975b2f5 commit 23f34c7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

go.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/go-openapi/strfmt v0.23.0
99
github.com/go-openapi/swag v0.23.1
1010
github.com/go-openapi/validate v0.24.0
11+
github.com/go-viper/mapstructure/v2 v2.2.1
1112
github.com/gofrs/flock v0.12.1
1213
github.com/google/go-cmp v0.7.0
1314
github.com/google/renameio v1.0.1
@@ -16,7 +17,6 @@ require (
1617
github.com/haproxytech/go-logger v1.1.0
1718
github.com/json-iterator/go v1.1.12
1819
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
19-
github.com/mitchellh/mapstructure v1.5.0
2020
github.com/sirkon/dst v0.26.4
2121
github.com/stretchr/testify v1.10.0
2222
golang.org/x/sync v0.14.0
@@ -35,6 +35,7 @@ require (
3535
github.com/go-openapi/spec v0.21.0 // indirect
3636
github.com/josharian/intern v1.0.0 // indirect
3737
github.com/mailru/easyjson v0.9.0 // indirect
38+
github.com/mitchellh/mapstructure v1.5.0 // indirect
3839
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3940
github.com/modern-go/reflect2 v1.0.2 // indirect
4041
github.com/oklog/ulid v1.3.1 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ github.com/go-openapi/swag v0.23.1 h1:lpsStH0n2ittzTnbaSloVZLuB5+fvSY/+hnagBjSNZ
2323
github.com/go-openapi/swag v0.23.1/go.mod h1:STZs8TbRvEQQKUA+JZNAm3EWlgaOBGpyFDqQnDHMef0=
2424
github.com/go-openapi/validate v0.24.0 h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58=
2525
github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ=
26+
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
27+
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
2628
github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E=
2729
github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0=
2830
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=

runtime/stats.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"fmt"
2020
"strings"
2121

22-
"github.com/mitchellh/mapstructure"
22+
"github.com/go-viper/mapstructure/v2"
2323

2424
"github.com/haproxytech/client-native/v6/models"
2525
)

0 commit comments

Comments
 (0)