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

Upgrade to go 1.22 #511

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Upgrade to go 1.22 #511

merged 2 commits into from
Feb 21, 2024

Conversation

sourishkrout
Copy link
Member

Bumping dependencies at the same time.

@sourishkrout
Copy link
Member Author

General maintenance review, please, @pastuxso.

Copy link

sonarcloud bot commented Feb 21, 2024

}
}
} else {
if typ := reflect.TypeOf(uErrs); typ.Kind() != reflect.Slice {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@sourishkrout, I'm wondering if this refactoring is part of the upgrade, and can be addressed in a separate PR?

Is it part of the go lint/format?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, lint/format after upgrade requires to turn if/else into early returns/breaks wherever possible. I think those changes are safe since we have broad test coverage for this code.

firstError = errors.Wrap(err, "failed to parse frontmatter content")
}
} else {
if err == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

IDEM.

@pastuxso
Copy link
Collaborator

pastuxso commented Feb 21, 2024

LGTM.

image

Build and tests are working fine, VS Code extension too. 👌

@sourishkrout sourishkrout merged commit 511312f into main Feb 21, 2024
6 checks passed
@sourishkrout sourishkrout deleted the go-1-22 branch February 21, 2024 14:34
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