chore(deps): update Go version (#4773)

Signed-off-by: anchore-oss-update-bot <anchore-oss-update-bot@users.noreply.github.com>
Co-authored-by: anchore-oss-update-bot <anchore-oss-update-bot@users.noreply.github.com>
This commit is contained in:
anchore-oss-update-bot
2026-04-15 10:01:39 -04:00
committed by GitHub
co-authored by anchore-oss-update-bot
parent 26e87c7cd3
commit 5b58ec96b7
113 changed files with 339 additions and 394 deletions
@@ -61,7 +61,7 @@ type packageState struct {
// parsePackageResolved is a parser for the contents of a Package.resolved file, which is generated by Xcode after it's resolved Swift Package Manger packages.
func parsePackageResolved(_ context.Context, _ file.Resolver, _ *generic.Environment, reader file.LocationReadCloser) ([]pkg.Package, []artifact.Relationship, error) {
dec := json.NewDecoder(reader)
var packageResolvedData map[string]interface{}
var packageResolvedData map[string]any
for {
if err := dec.Decode(&packageResolvedData); errors.Is(err, io.EOF) {
break
@@ -101,7 +101,7 @@ func parsePackageResolved(_ context.Context, _ file.Resolver, _ *generic.Environ
return pkgs, nil, unknown.IfEmptyf(pkgs, "unable to determine packages")
}
func pinsForVersion(data map[string]interface{}, version float64) ([]packagePin, error) {
func pinsForVersion(data map[string]any, version float64) ([]packagePin, error) {
var genericPins []packagePin
switch version {
case 1:
@@ -17,7 +17,7 @@ import (
var _ generic.Parser = parsePodfileLock
type podfileLock struct {
Pods []interface{} `yaml:"PODS"`
Pods []any `yaml:"PODS"`
Dependencies []string `yaml:"DEPENDENCIES"`
SpecRepos map[string][]string `yaml:"SPEC REPOS"`
SpecChecksums map[string]string `yaml:"SPEC CHECKSUMS"`
@@ -36,7 +36,7 @@ func parsePodfileLock(_ context.Context, _ file.Resolver, _ *generic.Environment
for _, podInterface := range podfile.Pods {
var podBlob string
switch v := podInterface.(type) {
case map[string]interface{}:
case map[string]any:
for k := range v {
podBlob = k
}