chore(deps): Switch to go-viper/mapstructure (#9579)

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
Mikel Olasagasti Uranga
2025-10-06 05:25:21 +02:00
committed by GitHub
parent 719ea29d31
commit 9058d51cb9
3 changed files with 5 additions and 6 deletions

7
go.mod
View File

@@ -48,6 +48,7 @@ require (
github.com/fatih/color v1.18.0
github.com/go-git/go-git/v5 v5.16.2
github.com/go-redis/redis/v8 v8.11.5
github.com/go-viper/mapstructure/v2 v2.4.0
github.com/gocsaf/csaf/v3 v3.3.0
github.com/golang-jwt/jwt/v5 v5.3.0
github.com/google/go-containerregistry v0.20.6
@@ -80,7 +81,6 @@ require (
github.com/mattn/go-shellwords v1.0.12
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/mitchellh/mapstructure v1.5.0
github.com/moby/buildkit v0.23.2
github.com/moby/docker-image-spec v1.3.1
github.com/open-policy-agent/opa v1.8.0
@@ -91,6 +91,7 @@ require (
github.com/owenrumney/go-sarif/v2 v2.3.3
github.com/package-url/packageurl-go v0.1.3
github.com/quasilyte/go-ruleguard/dsl v0.3.22
github.com/rogpeppe/go-internal v1.14.1
github.com/rust-secure-code/go-rustaudit v0.0.0-20250226111315-e20ec32e963c
github.com/samber/lo v1.51.0
github.com/sassoftware/go-rpmutils v0.4.0
@@ -129,8 +130,6 @@ require (
modernc.org/sqlite v1.39.0
)
require github.com/rogpeppe/go-internal v1.14.1
require (
buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.6-20250121211742-6d880cc6cc8d.1 // indirect
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250613105001-9f2d3c737feb.1 // indirect
@@ -277,7 +276,6 @@ require (
github.com/go-openapi/swag/yamlutils v0.24.0 // indirect
github.com/go-openapi/validate v0.24.0 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-json v0.10.3 // indirect
github.com/goccy/go-yaml v1.15.23 // indirect
@@ -341,6 +339,7 @@ require (
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/go-archive v0.1.0 // indirect
github.com/moby/locker v1.0.1 // indirect

View File

@@ -8,7 +8,7 @@ import (
"slices"
"strings"
"github.com/mitchellh/mapstructure"
"github.com/go-viper/mapstructure/v2"
"github.com/open-policy-agent/opa/v1/ast"
"github.com/open-policy-agent/opa/v1/rego"
"github.com/samber/lo"

View File

@@ -7,7 +7,7 @@ import (
"sort"
"strings"
ms "github.com/mitchellh/mapstructure"
ms "github.com/go-viper/mapstructure/v2"
"github.com/package-url/packageurl-go"
"github.com/samber/lo"
"golang.org/x/xerrors"