mirror of
https://github.com/prometheus/prometheus
synced 2026-04-30 23:11:34 +08:00
Merge pull request #17784 from roidelapluie/roidelapluie/license2026
Makefile.common: Add check for future copyright years
This commit is contained in:
@@ -129,6 +129,12 @@ common-check_license:
|
||||
echo "license header checking failed:"; echo "$${licRes}"; \
|
||||
exit 1; \
|
||||
fi
|
||||
@echo ">> checking for copyright years 2026 or later"
|
||||
@futureYearRes=$$(git grep -E 'Copyright (202[6-9]|20[3-9][0-9])' -- '*.go' ':!:vendor/*' || true); \
|
||||
if [ -n "$${futureYearRes}" ]; then \
|
||||
echo "Files with copyright year 2026 or later found (should use 'Copyright The Prometheus Authors'):"; echo "$${futureYearRes}"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
.PHONY: common-deps
|
||||
common-deps:
|
||||
|
||||
Reference in New Issue
Block a user