Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't claim copyright for future years #3233

Merged
merged 1 commit into from Aug 30, 2018

Conversation

bmwiedemann
Copy link
Contributor

@bmwiedemann bmwiedemann commented Aug 25, 2018

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 25, 2018
@bmwiedemann
Copy link
Contributor Author

/assign @mhenc

@sttts

@sttts
Copy link

sttts commented Aug 27, 2018

/unassign

Copy link
Member

@jeefy jeefy left a comment

Choose a reason for hiding this comment

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

Hopefully a quick change. :) If you have any questions or comments let me know!

build/script.js Outdated
@@ -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: "2018"},
Copy link
Member

Choose a reason for hiding this comment

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

Instead of hard-coding the date here, instead I'd put it in build/conf.js and reference the new variable. Since this seems tied to the release/commit, look for the "version" variable and maybe add a "buildDate" attribute?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually, I think the 'build' part in the name can be misleading. It is meant to contain the date/year of the last source change.
Just wanted to keep the patch simple for the start.
Will push an update for using conf.js

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.
@codecov
Copy link

codecov bot commented Aug 30, 2018

Codecov Report

Merging #3233 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3233   +/-   ##
=======================================
  Coverage   54.62%   54.62%           
=======================================
  Files         565      565           
  Lines       12424    12424           
=======================================
  Hits         6786     6786           
  Misses       5377     5377           
  Partials      261      261

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 990fab3...e2d5a9d. Read the comment docs.

@maciaszczykm
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bmwiedemann, maciaszczykm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 30, 2018
@k8s-ci-robot k8s-ci-robot merged commit 734600c into kubernetes:master Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants