Skip to content

Commit 9058d51

Browse files
chore(deps): Switch to go-viper/mapstructure (#9579)
Signed-off-by: Mikel Olasagasti Uranga <[email protected]>
1 parent 719ea29 commit 9058d51

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ require (
4848
github.com/fatih/color v1.18.0
4949
github.com/go-git/go-git/v5 v5.16.2
5050
github.com/go-redis/redis/v8 v8.11.5
51+
github.com/go-viper/mapstructure/v2 v2.4.0
5152
github.com/gocsaf/csaf/v3 v3.3.0
5253
github.com/golang-jwt/jwt/v5 v5.3.0
5354
github.com/google/go-containerregistry v0.20.6
@@ -80,7 +81,6 @@ require (
8081
github.com/mattn/go-shellwords v1.0.12
8182
github.com/mitchellh/go-homedir v1.1.0
8283
github.com/mitchellh/hashstructure/v2 v2.0.2
83-
github.com/mitchellh/mapstructure v1.5.0
8484
github.com/moby/buildkit v0.23.2
8585
github.com/moby/docker-image-spec v1.3.1
8686
github.com/open-policy-agent/opa v1.8.0
@@ -91,6 +91,7 @@ require (
9191
github.com/owenrumney/go-sarif/v2 v2.3.3
9292
github.com/package-url/packageurl-go v0.1.3
9393
github.com/quasilyte/go-ruleguard/dsl v0.3.22
94+
github.com/rogpeppe/go-internal v1.14.1
9495
github.com/rust-secure-code/go-rustaudit v0.0.0-20250226111315-e20ec32e963c
9596
github.com/samber/lo v1.51.0
9697
github.com/sassoftware/go-rpmutils v0.4.0
@@ -129,8 +130,6 @@ require (
129130
modernc.org/sqlite v1.39.0
130131
)
131132

132-
require github.com/rogpeppe/go-internal v1.14.1
133-
134133
require (
135134
buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.6-20250121211742-6d880cc6cc8d.1 // indirect
136135
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250613105001-9f2d3c737feb.1 // indirect
@@ -277,7 +276,6 @@ require (
277276
github.com/go-openapi/swag/yamlutils v0.24.0 // indirect
278277
github.com/go-openapi/validate v0.24.0 // indirect
279278
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
280-
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
281279
github.com/gobwas/glob v0.2.3 // indirect
282280
github.com/goccy/go-json v0.10.3 // indirect
283281
github.com/goccy/go-yaml v1.15.23 // indirect
@@ -341,6 +339,7 @@ require (
341339
github.com/mattn/go-runewidth v0.0.16 // indirect
342340
github.com/mitchellh/copystructure v1.2.0 // indirect
343341
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
342+
github.com/mitchellh/mapstructure v1.5.0 // indirect
344343
github.com/mitchellh/reflectwalk v1.0.2 // indirect
345344
github.com/moby/go-archive v0.1.0 // indirect
346345
github.com/moby/locker v1.0.1 // indirect

pkg/iac/rego/metadata.go

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

11-
"github.com/mitchellh/mapstructure"
11+
"github.com/go-viper/mapstructure/v2"
1212
"github.com/open-policy-agent/opa/v1/ast"
1313
"github.com/open-policy-agent/opa/v1/rego"
1414
"github.com/samber/lo"

pkg/k8s/scanner/scanner.go

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

10-
ms "github.com/mitchellh/mapstructure"
10+
ms "github.com/go-viper/mapstructure/v2"
1111
"github.com/package-url/packageurl-go"
1212
"github.com/samber/lo"
1313
"golang.org/x/xerrors"

0 commit comments

Comments
 (0)