mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
add go.mod cataloger (#97)
This commit is contained in:
@@ -133,6 +133,14 @@ var cases = []struct {
|
||||
"unicorn": "4.8.3",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "find golang modules",
|
||||
pkgType: pkg.GoModulePkg,
|
||||
pkgLanguage: pkg.Go,
|
||||
pkgInfo: map[string]string{
|
||||
"github.com/bmatcuk/doublestar": "v1.3.1",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func TestPkgCoverageImage(t *testing.T) {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
module github.com/anchore/imgbom
|
||||
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/bmatcuk/doublestar v1.3.1
|
||||
)
|
||||
Reference in New Issue
Block a user