Skip to content

Commit f07ba20

Browse files
author
Nikita Kotov
committed
Use composite key for package
1 parent 06fcb98 commit f07ba20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/services/checker/deepscan/ast_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ func parseRecursive(
9797
return nil, fmt.Errorf("failed parse '%s': %w", analysePackage, err)
9898
}
9999

100-
for _, astPackage := range found {
101-
pkgs[analysePackage] = astPackage
100+
for packageID, astPackage := range found {
101+
pkgs[fmt.Sprintf("%s_%s", analysePackage, packageID)] = astPackage
102102
}
103103
}
104104

0 commit comments

Comments
 (0)