Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

west: spdx: Fix copyright parsing #98416

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

Open
sorru94 wants to merge 1 commit into zephyrproject-rtos:main
base: main
Choose a base branch
Loading
from sorru94:west/spdx/fix-copyright

Conversation

@sorru94
Copy link
Contributor

@sorru94 sorru94 commented Oct 28, 2025

Fix the copyright parsing bug resulting from the new REUSE API. See the related issue for more information on the API change from v0.5.x and v0.6.x in REUSE.

Fixes #98378

Copy link
Contributor

@marc-hb marc-hb left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you have a bug reference which is great but a brief summary of the issue in the commit message itself would not hurt. If you could also make the commit subject a bit more specific, even better! Admittedly very difficult in just one line and so few characters.

Copy link
Contributor Author

sorru94 commented Oct 29, 2025

I see you have a bug reference which is great but a brief summary of the issue in the commit message itself would not hurt. If you could also make the commit subject a bit more specific, even better! Admittedly very difficult in just one line and so few characters.

Not sure if it's a good idea, but what do you think about squashing the two commits together?

@sorru94 sorru94 added the bug The issue is a bug, or the PR is fixing a bug label Oct 29, 2025
Copy link
Contributor

marc-hb commented Oct 29, 2025

I see you have a bug reference which is great

Actually, I just noticed you link to the bug only in the github description. Making this part of the commit message and git history is better.

Not sure if it's a good idea, but what do you think about squashing the two commits together?

I don't know; it depends on whether the first commit achieves something useful alone - without breaking anything of course. Does it?

Copy link
Contributor

kartben commented Oct 29, 2025

Yeah first commit will break for people who have what's (at the time of writing) a previous REUSE release from up to (at the time of writing) just a few weeks ago so it's better to make it clear in the requirements file that a recent version is needed (unless copyright_notices was already there in < 6.0 but I don't think it was...)

Fix broken copyright parsing. Since REUSE 6.0.0 the copyright_lines
attribute has been removed. The new attribute copyright_notices is used.
Additionally, the python package REUSE should now be at least v0.6.0.
This will require an update of REUSE for users that were using a
version earlier than 0.6.
Fixes zephyrproject-rtos#98378
Signed-off-by: Simone Orru <simone.orru@secomind.com>
@sorru94 sorru94 force-pushed the west/spdx/fix-copyright branch from d618b0e to c73a4f8 Compare October 30, 2025 08:26
Copy link
Contributor Author

sorru94 commented Oct 30, 2025

@kartben No, the CopyrightNotice class has been added in 6.0
I rebased and pushed the single commit form.

marc-hb reacted with thumbs up emoji

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kartben kartben Awaiting requested review from kartben

@carlescufi carlescufi Awaiting requested review from carlescufi

@mbolivar mbolivar Awaiting requested review from mbolivar

@pdgendt pdgendt Awaiting requested review from pdgendt

@swinslow swinslow Awaiting requested review from swinslow

@marc-hb marc-hb Awaiting requested review from marc-hb

At least 2 approving reviews are required to merge this pull request.

Labels

area: SPDX Tooling area: West West utility bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

west:spdx: Broken copyright identification with REUSE

AltStyle によって変換されたページ (->オリジナル) /