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

Update migration info for ContentIdentifier #910

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/annexes/diffs-from-previous-editions.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ The packageFileName property and packageChecksum property has been replaced by a

#### Translating from 2.3 to 3.0

Create an SPDX File with the name from the packageFileName and a verifiedUsing value from the packageChecksum for a single file. If the packageFileName is a directory, then the SPDX File is created with the directory name and is verified using the gitoid property on the File and a fileKind of directory. Create a hasDistributionArifact relationship from the SPDX Package to the SPDX File.
Create an SPDX File with the name from the packageFileName and a verifiedUsing value from the packageChecksum for a single file. If the packageFileName is a directory, then the SPDX File is created with the directory name and is verified using the contentIdentifier property on the File and a fileKind of directory. Create a hasDistributionArifact relationship from the SPDX Package to the SPDX File.

#### Rationale

Expand All @@ -123,7 +123,7 @@ Providing a File relationship to the download location will include more detaile

#### Description of Change

In SPDX 3.0, a new property externalIdentifiers and a new type ExternalIdentifier is introduced. This is in addition to retaining the ExternalRef property and classes.
In SPDX 3.0, a properties externalIdentifier and contentIdentifier with types ExternalIdentifier and ContentIdentifier were introduced. This is in addition to retaining the ExternalRef property and classes.

In SPDX 2.3, both identifiers and references were captured in the externalRef property for packages.

Expand All @@ -137,8 +137,11 @@ The following ExternalRef Types should be converted to ExternalIdentifiers:
* cpe23Type
* swid
* purl
* swh

The following ExternalRef Types should be converted to ContentIdentifers:

* gitoid
* swh

All other ExternalRef types should remain as ExternalRef’s.

Expand Down
Loading