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

SPDX creator tool adjustments #7410

Merged
merged 3 commits into from
Aug 24, 2023
Merged

SPDX creator tool adjustments #7410

merged 3 commits into from
Aug 24, 2023

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (4084133) 60.91% compared to head (c0e0a5c) 60.91%.

❗ Current head c0e0a5c differs from pull request most recent head fc140f0. Consider uploading reports for the commit fc140f0 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #7410   +/-   ##
=========================================
  Coverage     60.91%   60.91%           
  Complexity     1968     1968           
=========================================
  Files           338      338           
  Lines         16622    16622           
  Branches       2365     2365           
=========================================
  Hits          10126    10126           
  Misses         5518     5518           
  Partials        978      978           
Flag Coverage Δ
funTest-docker 69.29% <ø> (ø)
funTest-non-docker 29.50% <ø> (ø)
test 36.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fviernau fviernau requested a review from tsteenbe August 23, 2023 11:28
Just like for persons, also trim organization names to be on the safe
side. This is a preparation for an upcoming change.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
@sschuberth sschuberth force-pushed the ort-spdx-tool branch 2 times, most recently from c0e0a5c to c64c453 Compare August 23, 2023 11:43
@sschuberth sschuberth requested review from fviernau and a team August 23, 2023 11:43
The constants are more convenient to use when they do not include the
trailing space: At the example of this commit's diff, it is now clear
that the interpolated string is not a single word.

This also makes creator parsing more lenient as the space after the colon
is not strictly required anymore, which is something that the SPDX spec is
not clear about.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
While the SPDX spec is not clear about this, the example [1] suggests
that tool names should follow the syntax `toolidentifier-version`, and
some SPDX validation tools actually rely on this [2]. To be on the safe
side, and as "ort" as a (short) tool name is already well known in the
community, follow the example syntax and do not use spaces in the tool /
version string.

[1]: https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#68-creator-field
[2]: interlynk-io/sbombenchmark.dev#11 (comment)

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
@sschuberth sschuberth merged commit 0117b61 into main Aug 24, 2023
21 checks passed
@sschuberth sschuberth deleted the ort-spdx-tool branch August 24, 2023 11:36
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.

2 participants