-
Notifications
You must be signed in to change notification settings - Fork 148
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
Case-sensitivity of license IDs in download #46
Comments
Quite doable if I use a case-insensitive dictionary (I think |
As far as I can see, the IDs are all upper-case. Can the tool just transpose all characters for the ID to upper for this specific command? However, on the other hand, we should perhaps continue to be strict about this, otherwise people may start using lower/mixed-case chars with addheader. So perhaps rather a warning or suggestion? |
They aren't.
|
Oh, you are so right 🤦♂️ I agree that correcting the user is not really desireable. So perhaps an extra information to the error message of "Error: Failed to download license." along the lines of "Please notice that SPDX License Identifiers are case-sensitive" would suffice? |
I've found some details on this issue from a SPDX discussion thread:
Case sensitivity is important for tools to operate properly, so producing the correct header is desired. But for human input and matching this is not needed, as case shouldn't matter. So with that background, I'd like REUSE to autocorrect (only case-wise) the ids that are input by humans. |
The SPDX-License-Identifier given as a parameter for
reuse download
is case-sensitive. I wonder whether this is actually necessary since there is no conflict. Especially for manual downloads, some users might appreciate the tool being less strict about this.However, I think that we should stay case-sensitive when checking the identifiers with
reuse lint
.The text was updated successfully, but these errors were encountered: