replace modfile with stdlib (#187)

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2020-09-28 17:25:04 -04:00 committed by GitHub
parent 26855a2a9e
commit b5ce187ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

2
go.mod
View File

@ -21,7 +21,6 @@ require (
github.com/olekukonko/tablewriter v0.0.4 github.com/olekukonko/tablewriter v0.0.4
github.com/package-url/packageurl-go v0.1.0 github.com/package-url/packageurl-go v0.1.0
github.com/pelletier/go-toml v1.8.0 github.com/pelletier/go-toml v1.8.0
github.com/rogpeppe/go-internal v1.5.2
github.com/sergi/go-diff v1.1.0 github.com/sergi/go-diff v1.1.0
github.com/sirupsen/logrus v1.6.0 github.com/sirupsen/logrus v1.6.0
github.com/spf13/afero v1.2.2 github.com/spf13/afero v1.2.2
@ -33,5 +32,6 @@ require (
github.com/x-cray/logrus-prefixed-formatter v0.5.2 github.com/x-cray/logrus-prefixed-formatter v0.5.2
github.com/xeipuuv/gojsonschema v1.2.0 github.com/xeipuuv/gojsonschema v1.2.0
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/mod v0.3.0
gopkg.in/yaml.v2 v2.3.0 gopkg.in/yaml.v2 v2.3.0
) )

View File

@ -6,9 +6,8 @@ import (
"io/ioutil" "io/ioutil"
"sort" "sort"
"github.com/rogpeppe/go-internal/modfile"
"github.com/anchore/syft/syft/pkg" "github.com/anchore/syft/syft/pkg"
"golang.org/x/mod/modfile"
) )
// parseGoMod takes a go.mod and lists all packages discovered. // parseGoMod takes a go.mod and lists all packages discovered.