forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 0
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
f80183c
commit 2d80769
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.