Skip to content

Commit e4c6e1f

Browse files
authored
dev: replace mitchellh/mapstructure by go-viper/mapstructure/v2 (#4339)
1 parent 11bf3d6 commit e4c6e1f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ require (
3838
github.com/fzipp/gocyclo v0.6.0
3939
github.com/ghostiam/protogetter v0.3.4
4040
github.com/go-critic/go-critic v0.11.0
41+
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1
4142
github.com/go-xmlfmt/xmlfmt v1.1.2
4243
github.com/gofrs/flock v0.8.1
4344
github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2
@@ -77,7 +78,6 @@ require (
7778
github.com/mgechev/revive v1.3.6
7879
github.com/mitchellh/go-homedir v1.1.0
7980
github.com/mitchellh/go-ps v1.0.0
80-
github.com/mitchellh/mapstructure v1.5.0
8181
github.com/moricho/tparallel v0.3.1
8282
github.com/nakabonne/nestif v0.3.1
8383
github.com/nishanths/exhaustive v0.12.0
@@ -162,6 +162,7 @@ require (
162162
github.com/mattn/go-isatty v0.0.20 // indirect
163163
github.com/mattn/go-runewidth v0.0.9 // indirect
164164
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
165+
github.com/mitchellh/mapstructure v1.5.0 // indirect
165166
github.com/olekukonko/tablewriter v0.0.5 // indirect
166167
github.com/pelletier/go-toml v1.9.5 // indirect
167168
github.com/pelletier/go-toml/v2 v2.0.5 // indirect

go.sum

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

pkg/config/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"path/filepath"
88
"strings"
99

10+
"github.com/go-viper/mapstructure/v2"
1011
"github.com/mitchellh/go-homedir"
11-
"github.com/mitchellh/mapstructure"
1212
"github.com/spf13/viper"
1313
"golang.org/x/exp/slices"
1414

0 commit comments

Comments
 (0)