Skip to content

Commit fd56a67

Browse files
janiszclaude
andauthored
chore(deps): migrate mapstructure from mitchellh to go-viper/v2 (#21263)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e89ea29 commit fd56a67

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎go.mod‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ require (
5353
github.com/go-jose/go-jose/v4 v4.1.4
5454
github.com/go-logr/logr v1.4.4
5555
github.com/go-logr/zapr v1.3.0
56+
github.com/go-viper/mapstructure/v2 v2.5.0
5657
github.com/gobwas/glob v0.2.3
5758
github.com/godbus/dbus/v5 v5.2.2
5859
github.com/golang-jwt/jwt/v5 v5.3.1
@@ -86,7 +87,6 @@ require (
8687
github.com/mailru/easyjson v0.9.2
8788
github.com/mdlayher/vsock v1.3.0
8889
github.com/mitchellh/go-wordwrap v1.0.1
89-
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c
9090
github.com/np-guard/cluster-topology-analyzer/v2 v2.3.0
9191
github.com/np-guard/netpol-analyzer v1.4.4
9292
github.com/nxadm/tail v1.4.11
@@ -307,7 +307,6 @@ require (
307307
github.com/go-openapi/swag/yamlutils v0.28.0 // indirect
308308
github.com/go-openapi/validate v0.26.3 // indirect
309309
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
310-
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
311310
github.com/gobuffalo/flect v1.0.3 // indirect
312311
github.com/gogo/protobuf v1.3.2 // indirect
313312
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect

‎pkg/scannerv4/version.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/url"
66
"strings"
77

8-
"github.com/mitchellh/mapstructure"
8+
"github.com/go-viper/mapstructure/v2"
99
)
1010

1111
const (

‎scanner/config/config.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"strings"
1616
"time"
1717

18+
"github.com/go-viper/mapstructure/v2"
1819
"github.com/jackc/pgx/v5/pgxpool"
19-
"github.com/mitchellh/mapstructure"
2020
"github.com/spf13/viper"
2121
"github.com/stackrox/rox/pkg/buildinfo"
2222
"github.com/stackrox/rox/pkg/utils"

0 commit comments

Comments
 (0)