Skip to content

Commit

Permalink
Don't claim copyright for future years (kubernetes#3233)
Browse files Browse the repository at this point in the history
When building the kubernetes-dashboard openSUSE package
in future years, files differed because they contained
something like
this.latestCopyrightYear="2033"

See https://reproducible-builds.org/ for why this matters.

And https://stackoverflow.com/questions/2390230/do-copyright-dates-need-to-be-updated suggests that expiry should not be a concern anyway.

kubernetes/kubernetes#59172 fixed this for kubernetes.
  • Loading branch information
bmwiedemann authored and k8s-ci-robot committed Aug 30, 2018
1 parent 990fab3 commit 734600c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ const version = {
* Version name of the head release of the project.
*/
head: 'head',
/**
* Year of last source change of the project
*/
year: '2018',
};

/**
Expand Down
2 changes: 1 addition & 1 deletion build/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function patchBuildInformation() {
patterns: [
{match: 'BUILD_GIT_COMMIT', replacement: commit},
{match: 'BUILD_DASHBOARD_VERSION', replacement: conf.deploy.version.release},
{match: 'BUILD_YEAR', replacement: new Date().getFullYear()},
{match: 'BUILD_YEAR', replacement: conf.deploy.version.year},
],
}));
}
Expand Down

0 comments on commit 734600c

Please sign in to comment.