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

Tool fails to parse file when there's no newline after the license name #990

Open
hyperglitch opened this issue May 22, 2024 · 0 comments
Open

Comments

@hyperglitch
Copy link

reuse tool fails to parse the SPDX text if there's no newline character after the license name. Good example are the KiCad files (schematic, PCB, part libraries) which have fields for custom metadata (such as licence) which are then visible in the documentbut in the resulting file the SPDX text becomes a part of the s-expression. For example:

(comment 1 "SPDX-FileCopyrightText: 2024 Igor Brkic <[email protected]>")
(comment 2 "SPDX-License-Identifier: CERN-OHL-S-2.0")

Running the reuse tool results in:

reuse._util - ERROR - Could not parse 'CERN-OHL-S-2.0")'
reuse.project - ERROR - '../hw/JellyfishOPP.kicad_sch' holds an SPDX expression that cannot be parsed, skipping the file

Here's the example file: https://gitlab.com/hyperglitch/jellyfish/-/blob/main/hw/JellyfishOPP.kicad_sch?ref_type=heads

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

1 participant