Commit e993302
fix: place root component only in metadata.component, not in components[]
Per CycloneDX spec, the root component belongs in metadata.component only.
Previously it was duplicated in the components[] array, causing SBOM
parity issues between Java and JavaScript clients.
- Remove root component addition from addRoot()
- Update addDependency() to skip adding root as a component
- Update all 70 expected SBOM test fixtures to reflect the change
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c77e471 commit e993302
71 files changed
Lines changed: 10 additions & 677 deletions
File tree
- src
- main/java/io/github/guacsec/trustifyda/sbom
- test/resources
- msc/golang
- mvs_logic
- tst_manifests
- golang
- go_mod_light_no_ignore
- go_mod_no_ignore
- go_mod_no_path
- go_mod_with_all_ignore
- go_mod_with_ignore
- go_mod_with_one_ignored_prefix_go
- gradle-groovy
- deps_with_duplicate_different_versions
- deps_with_duplicate_no_version
- deps_with_ignore_full_specification
- deps_with_ignore_named_params
- deps_with_ignore_notations
- deps_with_no_ignore_common_paths
- gradle-kotlin
- deps_with_duplicate_different_versions
- deps_with_duplicate_no_version
- deps_with_ignore_full_specification
- deps_with_ignore_named_params
- deps_with_ignore_notations
- deps_with_no_ignore_common_paths
- maven
- deps_no_trivial_with_ignore
- deps_with_ignore_on_artifact
- deps_with_ignore_on_dependency
- deps_with_ignore_on_group
- deps_with_ignore_on_version
- deps_with_ignore_on_wrong
- deps_with_no_ignore
- pom_deps_with_no_ignore_common_paths
- pom_deps_with_no_ignore_provided_scope
- npm
- common
- deps_with_ignore
- deps_with_no_ignore
- deps_with_ignore
- deps_with_no_ignore
- pip
- pip_requirements_txt_ignore
- pip_requirements_txt_no_ignore
- pnpm
- deps_with_ignore
- deps_with_no_ignore
- yarn-berry
- deps_with_ignore
- deps_with_no_ignore
- yarn-classic
- deps_with_ignore
- deps_with_no_ignore
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| 268 | + | |
269 | 269 | | |
| 270 | + | |
270 | 271 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 272 | + | |
| 273 | + | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| |||
283 | 281 | | |
284 | 282 | | |
285 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
292 | | - | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 17 | | |
26 | 18 | | |
27 | 19 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 17 | | |
26 | 18 | | |
27 | 19 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 16 | | |
24 | 17 | | |
25 | 18 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 15 | | |
23 | 16 | | |
24 | 17 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 16 | | |
25 | 17 | | |
26 | 18 | | |
| |||
0 commit comments