forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
505cad0
commit feb531c
Showing
8 changed files
with
270 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package mod | ||
|
||
import ftypes "github.com/aquasecurity/trivy/pkg/fanal/types" | ||
import ( | ||
"slices" | ||
|
||
ftypes "github.com/aquasecurity/trivy/pkg/fanal/types" | ||
) | ||
|
||
var ( | ||
// execute go mod tidy in normal folder | ||
|
@@ -17,37 +21,71 @@ var ( | |
}, | ||
}, | ||
{ | ||
ID: "github.com/aquasecurity/[email protected]", | ||
Name: "github.com/aquasecurity/go-dep-parser", | ||
Version: "0.0.0-20211224170007-df43bca6b6ff", | ||
ID: "[email protected]", | ||
Name: "stdlib", | ||
Version: "1.22.5", | ||
Relationship: ftypes.RelationshipDirect, | ||
}, | ||
{ | ||
ID: "github.com/aquasecurity/[email protected]", | ||
Name: "github.com/aquasecurity/go-version", | ||
Version: "0.0.0-20240603093900-cf8a8d29271d", | ||
Relationship: ftypes.RelationshipDirect, | ||
ExternalReferences: []ftypes.ExternalRef{ | ||
{ | ||
Type: ftypes.RefVCS, | ||
URL: "https://github.com/aquasecurity/go-dep-parser", | ||
URL: "https://github.com/aquasecurity/go-version", | ||
}, | ||
}, | ||
}, | ||
{ | ||
ID: "golang.org/x/[email protected]", | ||
Name: "golang.org/x/xerrors", | ||
Version: "0.0.0-20200804184101-5ec99f83aff1", | ||
ID: "github.com/davecgh/[email protected]", | ||
Name: "github.com/davecgh/go-spew", | ||
Version: "1.1.2-0.20180830191138-d8f796af33cc", | ||
Relationship: ftypes.RelationshipIndirect, | ||
ExternalReferences: []ftypes.ExternalRef{ | ||
{ | ||
Type: ftypes.RefVCS, | ||
URL: "https://github.com/davecgh/go-spew", | ||
}, | ||
}, | ||
}, | ||
{ | ||
ID: "github.com/pmezard/[email protected]", | ||
Name: "github.com/pmezard/go-difflib", | ||
Version: "1.0.1-0.20181226105442-5d4384ee4fb2", | ||
Relationship: ftypes.RelationshipIndirect, | ||
ExternalReferences: []ftypes.ExternalRef{ | ||
{ | ||
Type: ftypes.RefVCS, | ||
URL: "https://github.com/pmezard/go-difflib", | ||
}, | ||
}, | ||
}, | ||
{ | ||
ID: "gopkg.in/[email protected]", | ||
Name: "gopkg.in/yaml.v3", | ||
Version: "3.0.0-20210107192922-496545a6307b", | ||
ID: "github.com/stretchr/[email protected]", | ||
Name: "github.com/stretchr/testify", | ||
Version: "1.9.0", | ||
Relationship: ftypes.RelationshipIndirect, | ||
ExternalReferences: []ftypes.ExternalRef{ | ||
{ | ||
Type: ftypes.RefVCS, | ||
URL: "https://github.com/go-yaml/yaml", | ||
URL: "https://github.com/stretchr/testify", | ||
}, | ||
}, | ||
}, | ||
{ | ||
ID: "golang.org/x/[email protected]", | ||
Name: "golang.org/x/xerrors", | ||
Version: "0.0.0-20231012003039-104605ab7028", | ||
Relationship: ftypes.RelationshipIndirect, | ||
}, | ||
} | ||
|
||
GoModNormalWithoutStdlib = slices.DeleteFunc(slices.Clone(GoModNormal), func(f ftypes.Package) bool { | ||
return f.Name == "stdlib" | ||
}) | ||
|
||
// execute go mod tidy in replaced folder | ||
GoModReplaced = []ftypes.Package{ | ||
{ | ||
|
Oops, something went wrong.