chore: Update syft bootstrap tools to latest versions. (#1682)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
anchore-actions-token-generator[bot]
2023-03-20 13:20:48 -04:00
committed by GitHub
parent 5fb0423b72
commit 434aa7fd46
17 changed files with 20 additions and 18 deletions
+1 -2
View File
@@ -106,9 +106,8 @@ func stripSlashes(s string) string {
for i, c := range s {
if c == '\\' && i+1 < len(s) && strings.ContainsRune(allowedCPEPunctuation, rune(s[i+1])) {
continue
} else {
sb.WriteRune(c)
}
sb.WriteRune(c)
}
return sb.String()
}
+1 -1
View File
@@ -105,7 +105,7 @@ func runCataloger(cataloger pkg.Cataloger, resolver source.FileResolver) (catalo
// request.
//
//nolint:funlen
func Catalog(resolver source.FileResolver, release *linux.Release, parallelism int, catalogers ...pkg.Cataloger) (*pkg.Catalog, []artifact.Relationship, error) {
func Catalog(resolver source.FileResolver, _ *linux.Release, parallelism int, catalogers ...pkg.Cataloger) (*pkg.Catalog, []artifact.Relationship, error) {
catalog := pkg.NewCatalog()
var allRelationships []artifact.Relationship
+3 -2
View File
@@ -82,11 +82,12 @@ func printError(data []byte, i int) string {
if c == '\n' {
prev = append(prev, curr.String())
curr.Reset()
if idx >= i {
break
} else {
line++
}
line++
char = 1
continue
}
@@ -104,9 +104,8 @@ func parsePackageLock(resolver source.FileResolver, _ *generic.Environment, read
if name == "" {
if pkgMeta.Name == "" {
continue
} else {
name = pkgMeta.Name
}
name = pkgMeta.Name
}
// handles alias names
+1 -1
View File
@@ -199,7 +199,7 @@ func (r MockResolver) FilesByBasename(filenames ...string) ([]Location, error) {
return results, nil
}
func (r MockResolver) FilesByBasenameGlob(globs ...string) ([]Location, error) {
func (r MockResolver) FilesByBasenameGlob(_ ...string) ([]Location, error) {
// TODO implement me
panic("implement me")
}