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

Change goheader template to avoid bug #1376

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

pkulik0
Copy link
Contributor

@pkulik0 pkulik0 commented Sep 23, 2024

Description

This PR updates the goheader template with the same changes we have for Livepatch repos. As discovered by Kian, regexes cause buggy behaviour in the goheader linter which under certain conditions puts them in place as literals.
We use the built-in MOD-YEAR value instead which causes more updates of headers but works correctly.

@pkulik0 pkulik0 requested a review from a team as a code owner September 23, 2024 16:11
@pkulik0 pkulik0 merged commit c8fd095 into canonical:v3 Sep 24, 2024
4 checks passed
@pkulik0 pkulik0 deleted the fix-goheader branch September 24, 2024 12:07
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.

3 participants