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

{cmd/dcrdata}: Use template func for footer year #1997

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

ukane-philemon
Copy link
Collaborator

This PR adds a currentYear template function to display the correct current year so we don't need to update this every year.

@davecgh davecgh mentioned this pull request Sep 23, 2024
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

Code looks fine now, so approved.

That said, it's arguable whether or not this should be automatic. After all, if nobody from the Decred project touched the code in the current year, the copyright shouldn't really be updated to claim that they have.

On the other hand, in practice, at least one of the files somewhere is very likely to have been modified and it's exceedingly easy to forgot updating this off in some file nested down in a cmd subdir, so it is nice from that perspective.

@ukane-philemon ukane-philemon merged commit 8f1671a into decred:master Sep 23, 2024
5 checks passed
@ukane-philemon ukane-philemon deleted the go-year branch September 23, 2024 13:48
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