Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpdxDocumentModelMapper: Make SPDX "idstring" generation predictable #5225

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

sschuberth
Copy link
Member

Being able to predict the SPDX "idstring" for a given package is a
prerequisite for upcoming changes that will maintain the transitive
package relationships.

The SPDX ID is now derived from the coordinate representation of a
project's / package's Identifier. As the Identifier is unique within
an OrtResult, the derived SPDX ID is very likely unique, too, except
for cases where coordinate representations differ only in special
characters that get mapped to the same valid character for an SPDX ID.

Signed-off-by: Sebastian Schuberth sebastian.schuberth@bosch.io

Being able to predict the SPDX "idstring" for a given package is a
prerequisite for upcoming changes that will maintain the transitive
package relationships.

The SPDX ID is now derived from the coordinate representation of a
project's / package's `Identifier`. As the `Identifier` is unique within
an `OrtResult`, the derived SPDX ID is very likely unique, too, except
for cases where coordinate representations differ only in special
characters that get mapped to the same valid character for an SPDX ID.

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
@sschuberth sschuberth requested a review from a team as a code owner April 5, 2022 16:46
@sschuberth
Copy link
Member Author

@fviernau I hope this aligns with what we discussed.

@tsteenbe
Copy link
Member

tsteenbe commented Apr 7, 2022

Am I correct that we now write use "first" instead of "1"

@sschuberth
Copy link
Member Author

Am I correct that we now write use "first" instead of "1"

This has been clarified in today's ORT developer meeting. The short answer is "no" 😀

@sschuberth sschuberth merged commit c2f685d into main Apr 7, 2022
@sschuberth sschuberth deleted the predictable-spdx-ids branch April 7, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants