Uh oh!
There was an error while loading. Please reload this page.
fix: Switch refs for dev and opt dependencies in SPDX sboms - #6871
fix: Switch refs for dev and opt dependencies in SPDX sboms#6871antonbauhofer wants to merge 2 commits into
Conversation
This adjusts the relationships to match the explanations at https://spdx.github.io/spdx-spec/v2.3/relationships-between-SPDX-elements/Fixesnpm#6867 Signed-off-by: Anton Bauhofer <anton.bauhofer@tngtech.com>
maxhbr
commented
Oct 5, 2023
This fixes the issue #6867 (which should still be open) |
wraithgar
commented
Oct 5, 2023
Sorry for the confusion earlier today. I'll let @bdehamer review this |
maxhbr
commented
Oct 5, 2023
Thanks for your support! I think the initial misunderstanding was caused by my imprecise comment on #6801, so I might be to blame for confusion here. |
maxhbr
commented
Nov 28, 2023
@bdehamer : this is still a bug in npm and it would benefit from your review. |
bdehamer
commented
Nov 28, 2023
@maxhbr if SPDX is ok with inverting those relationships for This would make the direction of the relationship consistent across all four types (and eliminate some complexity from the implementation). |
maxhbr
commented
Nov 29, 2023
Yes, I agree that this would be an option. We implemented that in https://github.com/npm/cli/pull/6868/files |
bdehamer
commented
Nov 29, 2023
Closing this in favor of #7036 so that we can swap the direction for ALL of the relationship types. |
As pointed out in this comment, the relationships in SPDX sboms are currently incorrect.
In order to keep the directions as intuitive as possible, we leave them as is for dependencies and prerequisites, and only swap the refs for dev and optional dependencies, where it is currently not correct.
Fixes#6867