Skip to content

update SPDX headers to better match the specification - #34

Merged
thaJeztah merged 1 commit into
moby:mainfrom
thaJeztah:adjust_headers
Jul 3, 2026
Merged

thaJeztah merged 1 commit into
moby:mainfrom
thaJeztah:adjust_headers

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

commit 4f00041 added SPDX copyright headers to all files, using Copyright as a prefix. While this is generally detected correctly, the REUSE Specification describes the SPDX-FileCopyrightText header/tag as the standard header used for detection;

Format of Copyright Notices

A Copyright Notice MUST start with a tag, word or symbol (collectively:
prefixes) from the following list:

  • SPDX-FileCopyrightText (or SPDX-SnippetCopyrightText in Snippets)
  • Copyright
  • ©

It is RECOMMENDED to use the SPDX-FileCopyrightText tag. You MAY add '(C)',
'(c)' or '©' after the prefix.

This patch updates the headers to use the recommended SPDX-FileCopyrightText tag.

commit 4f00041 added SPDX copyright headers
to all files, using `Copyright` as a prefix. While this is generally detected
correctly, the [REUSE Specification] describes the [SPDX-FileCopyrightText]
header/tag as the standard header used for detection;

> ## Format of Copyright Notices
>
> A Copyright Notice MUST start with a tag, word or symbol (collectively:
> prefixes) from the following list:
>
> - `SPDX-FileCopyrightText` (or `SPDX-SnippetCopyrightText` in Snippets)
> - Copyright
> - ©
>
> It is RECOMMENDED to use the `SPDX-FileCopyrightText` tag. You MAY add '(C)',
> '(c)' or '©' after the prefix.

This patch updates the headers to use the recommended `SPDX-FileCopyrightText`
tag.

[SPDX-FileCopyrightText]: https://spdx.github.io/spdx-spec/v2.3/file-tags/#h2-file-tags-format
[REUSE Specification]: https://reuse.software/spec-3.3/#format-of-copyright-notices

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah

Copy link
Copy Markdown
Member Author

Thx! I'll bring this one in; the old variant would still work, but it's good to update, as we may use this repository as example / template for other ones 😅

@thaJeztah
thaJeztah merged commit dbe691e into moby:main Jul 3, 2026
10 checks passed
@thaJeztah
thaJeztah deleted the adjust_headers branch July 3, 2026 18:02
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

Successfully merging this pull request may close these issues.

2 participants