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

update to go 1.21.3 #2084

Merged
merged 3 commits into from
Oct 19, 2023
Merged

update to go 1.21.3 #2084

merged 3 commits into from
Oct 19, 2023

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Oct 17, 2023

https://tip.golang.org/doc/go1.21

Updates golangci-lint to 1.54.2 and its configuration to show all lint issues and align exclude rules with buildkit ones as well: https://github.com/golangci/golangci-lint/releases/tag/v1.54.2

Signed-off-by: CrazyMax <[email protected]>
@crazy-max crazy-max requested review from tonistiigi and ktock October 18, 2023 07:08
@crazy-max crazy-max marked this pull request as ready for review October 18, 2023 07:08
@crazy-max crazy-max requested a review from jedevc October 18, 2023 07:08
bake/bake.go Outdated
func ReadTargets(ctx context.Context, files []File, targets, overrides []string, defaults map[string]string) (map[string]*Target, map[string]*Group, error) {
func ReadTargets(_ context.Context, files []File, targets, overrides []string, defaults map[string]string) (map[string]*Target, map[string]*Group, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like revive linter error? Recent revive seems too strict so maybe we can have some exclude-rules like this: https://github.com/moby/buildkit/blob/3dedf3c5e72c55e2a61cd98e67e0f461d545b195/.golangci.yml#L61

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah gotcha thanks. I was wondering why we had so many issues. Let me check.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have aligned the rules with buildkit ones.

crazy-max and others added 2 commits October 19, 2023 12:24
also update config to show all issues at once and
set same exlucde rules as buildkit ones.

Signed-off-by: CrazyMax <[email protected]>
@crazy-max crazy-max merged commit ad674e2 into docker:master Oct 19, 2023
@crazy-max crazy-max deleted the go-1.21 branch October 19, 2023 10:55
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