File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pkg/dependency/parser/dotnet/core_deps Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ func (p *Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependenc
103
103
return pkgs , nil , nil
104
104
}
105
105
106
- // isRuntimeLibrary returns true if library doesn't contain `runtime`, `runtimeTarget` and `native` sections.
106
+ // isRuntimeLibrary returns true if library contains `runtime`, `runtimeTarget` or `native` sections, or if the library is missing from `targetLibs` .
107
107
// See https://github.com/aquasecurity/trivy/discussions/4282#discussioncomment-8830365 for more details.
108
108
func (p * Parser ) isRuntimeLibrary (targetLibs map [string ]TargetLib , library string ) bool {
109
109
lib , ok := targetLibs [library ]
@@ -115,7 +115,7 @@ func (p *Parser) isRuntimeLibrary(targetLibs map[string]TargetLib, library strin
115
115
})
116
116
return true
117
117
}
118
- // Check that `runtime`, `runtimeTarget` and `native` sections are empty
118
+ // Check that `runtime`, `runtimeTarget` and `native` sections are not empty
119
119
return ! lo .IsEmpty (lib )
120
120
}
121
121
You can’t perform that action at this time.
0 commit comments