-
Notifications
You must be signed in to change notification settings - Fork 157
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
Do not parse DEP5 covered files #246
Comments
Ah, it's always a problem when there are SPDX-FileCopyrightText/License-Identifier strings in the files that are not meant for REUSE. The easiest way would be if you could split the string somehow in your template, so something like: I'm not sure whether there is another way in this case. @carmenbianca perhaps? |
@mxmehl thanks, your idea is a good workaround, although pythons
Nevertheless, is it on purpose that files covered by DEP5 are still parsed? |
This overlaps #253 . I think the biggest useful change would be to more clearly document the way in which searching for a license happens and in which order (.license file, imbedded in file, .reuse/dep5 ?last match?). AFAICT if .license exists then the file is not read; but if the file is in dep5, it is still processed looking for the tags inside itself (and will possibly raise an error). This is probably desirable in that otherwise, wildcards in dep5 might override valid information inside files, it just isn't clear that's what's going on (if it is). |
I just encountered a similar problem. I’m including the source code of a third-party library in a project I maintain. The library uses the deprecated LGPL-3.0 identifier which reuse does not accept. I would like to overwrite these annotations in the dep5 file, but reuse still parses the library files and reports the incorrect license identifier. |
Yes, we will have to define the precedence clearly. There is fsfe/reuse-docs#70 which proposes some options. Input is welcome! |
Closing this as it is now a documentation issue: fsfe/reuse-docs#70 |
I have the situation where I have files which are Jinja2 templates to generate a project files, and reuse complains that he cannot parse it.
For example:
And reuse complains about an reading error because he cannot parse the
{{
. It is intended that during the generation of the project{{ cookiecutter.spdx_license_identifier }}
is replaced by a correct value. Genarlly I find it good to include it, so that the generated project from the template is directly reuse compliant.So I cannot add the license information directly in the template files. To license the template files itself, I would add them to the DEP5 file:
However, reuse still tries to parse it, and the command fails (non zero exit code). Can resue probably ignore and do not parse files which are covered by DEP5?
The text was updated successfully, but these errors were encountered: