Bug fix for 1095 - syft conversion option error (#1177)

Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Christopher Angelo Phillips
2022-08-25 17:36:15 -04:00
committed by GitHub
co-authored by Alex Goodman
parent 2c882f6239
commit 615f933d98
14 changed files with 106 additions and 20 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package golang
import (
"fmt"
"io"
"io/ioutil"
"sort"
"github.com/anchore/syft/syft/artifact"
@@ -15,7 +14,7 @@ import (
func parseGoMod(path string, reader io.Reader) ([]*pkg.Package, []artifact.Relationship, error) {
packages := make(map[string]*pkg.Package)
contents, err := ioutil.ReadAll(reader)
contents, err := io.ReadAll(reader)
if err != nil {
return nil, nil, fmt.Errorf("failed to read go module: %w", err)
}