Skip to content

CI: Enforce SPDX headers on newly changed files#5268

Closed
crueter wants to merge 1 commit intoFEX-Emu:mainfrom
crueter:reuse
Closed

CI: Enforce SPDX headers on newly changed files#5268
crueter wants to merge 1 commit intoFEX-Emu:mainfrom
crueter:reuse

Conversation

@crueter
Copy link
Copy Markdown
Collaborator

@crueter crueter commented Jan 27, 2026

Just the identifier, year can be easily retrofitted by changing one
variable. This script will receive updates in the future, so can be
implanted when those occur.

Not sure if retroactively applying headers is a good idea, but that
would be a separate PR.

Signed-off-by: crueter crueter@eden-emu.dev

@crueter crueter force-pushed the reuse branch 3 times, most recently from 93c31cf to e180104 Compare January 27, 2026 04:24
@crueter
Copy link
Copy Markdown
Collaborator Author

crueter commented Jan 27, 2026

CC. this requires license_header to be changed to be a required check

Copy link
Copy Markdown
Member

@neobrain neobrain left a comment

Choose a reason for hiding this comment

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

Honestly this is an awful lot of code for a relatively small problem. I don't think we need to automate the adding of SPDX headers.

For checking presence of the headers, is there no existing tooling that does this?

@crueter
Copy link
Copy Markdown
Collaborator Author

crueter commented Feb 24, 2026

Unfortunately no, REUSE has a command-line interface but it just doesn't work right. I can rework the existing code into something a bit more compact by removing the add/update code.

Just the identifier, year can be easily retrofitted by changing one
variable. This script will receive updates in the future, so can be
implanted when those occur.

Not sure if retroactively applying headers is a good idea, but that
would be a separate PR.

Signed-off-by: crueter <crueter@eden-emu.dev>
@crueter
Copy link
Copy Markdown
Collaborator Author

crueter commented Feb 24, 2026

OK, consolidated it a bit

@crueter crueter requested a review from neobrain February 24, 2026 20:04
@neobrain
Copy link
Copy Markdown
Member

I'm still not sure this solves a problem we had. It's not a ton of code, but the cost of missing an SPDX header now and then is equally marginal. Maybe others want to weigh in on this.

@Sonicadvance1
Copy link
Copy Markdown
Member

I'm just going to say no to this. It's CI for the sake of CI rather than actually solving a problem. Good shout that some projects probably need this but I don't think that's us.

@crueter crueter deleted the reuse branch March 18, 2026 01:10
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