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

Add SPDX license ID to the source files instead of non-descriptive "look at the top-level of this crate" comment #1222

Open
sdroege opened this issue Nov 9, 2023 · 5 comments

Comments

@sdroege
Copy link
Member

sdroege commented Nov 9, 2023

@GuillaumeGomez @bilelmoussaoui Any opinions?

@GuillaumeGomez
Copy link
Member

Do you have a description of why we would want this change and what it brings? I have no idea what SPDX license ID is about. ^^'

@sdroege
Copy link
Member Author

sdroege commented Nov 9, 2023

@GuillaumeGomez
Copy link
Member

Sorry but I don't see what improvements it adds (not against it, please do it if you think it's an improvement!). Why do you need to use SPDX license for that and not just "Licensed under X. Take a look at the LICENSE file"?

@sdroege
Copy link
Member Author

sdroege commented Nov 9, 2023

It's machine-readable and the same format in multiple projects. As a human you can just run grep on your code and all your dependencies to compile a list of all applicable licenses, a tool can collect these automatically.

For Rust code it's less of a problem thanks to the license field in the Cargo.toml (which uses a SPDX license ID btw), until you start mixing files with different licenses in the same crate. Having that one line in each file removes all the ambiguity.

@bilelmoussaoui
Copy link
Member

I agree, always found the copy pasted sentence not great

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

No branches or pull requests

3 participants