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

[vconone] Notice people to update year #14588

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dayo09
Copy link
Contributor

@dayo09 dayo09 commented Jan 23, 2025

But I am not sure this can work.

ONE-DCO-Signed-off-by: Dayoung Lee [email protected]

@dayo09 dayo09 force-pushed the 0123-vconone-update branch from 5e84e6c to 1ba8653 Compare January 23, 2025 11:56
@@ -45,5 +61,14 @@ TEST(vconone, copyright)
{
auto str = vconone::get_copyright();

int year = 2024;

if (year < get_current_year()){
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should it fail the test? I am worried that production CI fails from this small problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or, what if, we make CI fail if it's not updated until Feburary of each year.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, printing warning is almost nothing because it's not printed unless verbose keyword is on for ./nncc test

But I am not sure this can work.

ONE-DCO-Signed-off-by: Dayoung Lee <[email protected]>
@dayo09 dayo09 force-pushed the 0123-vconone-update branch from 1ba8653 to 3b19e64 Compare January 23, 2025 12:06
@seanshpark
Copy link
Contributor

@dayo09 , maybe post an issue to get opinions from others.
IMHO, making build fail if year is not updated seems OK to me :)

@@ -45,5 +62,15 @@ TEST(vconone, copyright)
{
auto str = vconone::get_copyright();

int year = 2024;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Get this year properly from get_copyright function

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