Skip to content

Makefile.common: Add check for future copyright years#17784

Merged
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:roidelapluie/license2026
Jan 5, 2026
Merged

Makefile.common: Add check for future copyright years#17784
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:roidelapluie/license2026

Conversation

@roidelapluie
Copy link
Member

@roidelapluie roidelapluie commented Jan 5, 2026

Add validation in common-check_license to detect and reject copyright headers with years 2026 or later. This enforces the removal of copyright dates as per https://github.com/prometheus/proposals/blob/main/proposals/0050-remove-copyright-dates.md

Which issue(s) does the PR fix:

Does this PR introduce a user-facing change?

NONE

Add validation in common-check_license to detect and reject copyright
headers with years 2026 or later. This enforces the removal of copyright
dates as per https://github.com/prometheus/proposals/blob/main/proposals/0050-remove-copyright-dates.md

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie requested a review from SuperQ January 5, 2026 10:02
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're actively removing copyright years from our code.

See: PROM-50.

@roidelapluie
Copy link
Member Author

Yes. This check verifies that we do not introduce NEW copyright years. I was thinking we would not to a big all-in-one remove copyright year thing.

@SuperQ
Copy link
Member

SuperQ commented Jan 5, 2026

Brain needs more coffee today.

@roidelapluie roidelapluie merged commit 8d5655f into prometheus:main Jan 5, 2026
28 of 29 checks passed
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