Commit e071c79
committed
fix(go): merge children on MVS version key collision instead of overwriting
In getFinalPackagesVersionsForModule(), when multiple original parent
versions remap to the same MVS-selected version, HashMap.put() was
overwriting the children list, losing transitive dependencies. Replace
put() with merge() using a LinkedHashSet to combine children lists while
deduplicating entries.
Before: 134 components (4 lost due to key collisions)
After: 138 components (matching JS client output)
Implements TC-4127
Assisted-by: Claude Code1 parent 1aee31c commit e071c79
2 files changed
Lines changed: 42 additions & 1 deletion
File tree
- src
- main/java/io/github/guacsec/trustifyda/providers
- test/java/io/github/guacsec/trustifyda/providers
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
201 | 235 | | |
202 | 236 | | |
203 | 237 | | |
| |||
0 commit comments