Skip to content

Commit 652b981

Browse files
authored
Merge pull request #64 from prometheus/superq/50
proposal: Remove copyright dates
2 parents 52d0bae + f137743 commit 652b981

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Remove copyright dates
2+
3+
* **Owners**
4+
* Ben Kochie ([@SuperQ](https://github.com/SuperQ))
5+
6+
* **Implementation**: Accepted
7+
8+
* **Related Issues and PRs:**
9+
* https://github.com/prometheus/proposals/issues/50
10+
11+
* **Other docs or links:**
12+
* https://github.com/cncf/foundation/blob/main/copyright-notices.md
13+
14+
> CONSENSUS: We agree that we want to remove the date from the license headers from our files
15+
16+
## Why
17+
18+
The CNCF copyright notice guidelines recommend against including dates/years in them.
19+
20+
We should, on a best effort basis, remove the year from the notice headers on our projects. This would reduce the issues with having to deal with PRs copy-and-pasting the wrong year when creating new files.
21+
22+
## How
23+
24+
The new copyright header at the beginning of source files:
25+
26+
```
27+
// Copyright The Prometheus Authors
28+
```
29+
30+
Simple sed script to help automate updates:
31+
32+
```
33+
find . -type f \( -iname '*.go' -or -iname Makefile \) \
34+
\( ! -path './vendor/*' -and ! -path '*/node_modules/*' \) \
35+
| xargs sed -i -E '1s/^(\/\/|#) Copyright .*/\1 Copyright The Prometheus Authors/'
36+
```

0 commit comments

Comments
 (0)