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

Support SPDX-FileName #1130

Open
toobuntu opened this issue Jan 19, 2025 · 0 comments
Open

Support SPDX-FileName #1130

toobuntu opened this issue Jan 19, 2025 · 0 comments

Comments

@toobuntu
Copy link

reuse-tool already supports SPDX-FileCopyrightText and SPDX-FileContributor as defined in https://spdx.github.io/spdx-spec/v2.3/file-tags/.

We would like to also include SPDX-FileType and SPDX-FileName. The usefulness of these tags is still being debated, and we might drop them altogether. It can be argued that SPDX-FileName is largely irrelevant, but we would like to use it to canonicalize the full path and file name relative to the project root. To do this, it seems that we can add both to a Jinja template.

  1. For SPDX-FileName, we would need a way to dynamically determine the file name for each file being processed. A variable to represent the current file could help.
  2. For SPDX-FileType, we would seemingly need to use a conditional based on the path. E.g. {% if "/bin" in path %}SPDX-FileType: BINARY{% endif %}

Is this possible or out-of-scope?

For now we are including the information in REUSE.toml, which is silently ignored:

SPDX-FileType = "BINARY"
SPDX-FileName = "./bin/<executable-name>"
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