Skip to content
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
@mxmehl

Description

@mxmehl

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

  1. file content
  2. file.license
  3. adjacent REUSE.yaml (no matter if explicit or glob)
  4. 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

  1. file.license
  2. file content
  3. adjacent REUSE.yaml (no matter if explicit or glob)
  4. faraway REUSE.yaml

Option 3: most tooling robust

Rationale: Similar to Option 2, but make a difference between explicit and glob file definitions

  1. file.license
  2. explicit in adjacent yaml (so file directly covered)
  3. explicit in faraway yaml
  4. file content
  5. glob in adjacent yaml (file covered e.g. as part of *.png)
  6. glob in faraway yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    specSpecification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions