This repository was archived by the owner on May 27, 2024. It is now read-only.
This repository was archived by the owner on May 27, 2024. It is now read-only.
Define precedence of information with REUSE.yaml #70
Open
Description
We should decide on a precedence chain for which the tool (and our spec) can decide which licensing/copyright information is the determining one if there are conflics, e.g. between the source code file and the respective .license file.
All is based on the assumption that we will introduce a REUSE.yaml file.
There are three opions that make sense in their own ways. Which one do you prefer?
Option 1: most intuitive
Rationale: The closer to the file, the more weight the information should have
- file content
- file.license
- adjacent REUSE.yaml (no matter if explicit or glob)
- faraway REUSE.yaml
Option 2: override compromise
Rationale: Allow to override file contents, e.g. if there are misleading strings which confuse the REUSE tool. Otherwise, as Option 1
- file.license
- file content
- adjacent REUSE.yaml (no matter if explicit or glob)
- faraway REUSE.yaml
Option 3: most tooling robust
Rationale: Similar to Option 2, but make a difference between explicit and glob file definitions
- file.license
- explicit in adjacent yaml (so file directly covered)
- explicit in faraway yaml
- file content
- glob in adjacent yaml (file covered e.g. as part of
*.png
) - glob in faraway yaml