mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-02-16 05:33:46 +08:00
fix(java): add hash of GAV+root pom file path for pkgID for packages from pom.xml files (#9880)
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com>
This commit is contained in:
@@ -17,5 +17,5 @@ func (c pomCache) get(art artifact) *analysisResult {
|
||||
}
|
||||
|
||||
func (c pomCache) key(art artifact) string {
|
||||
return fmt.Sprintf("%s:%s", art.Name(), art.Version)
|
||||
return fmt.Sprintf("%s:%s:%s", art.Name(), art.Version, art.RootFilePath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user