-
Notifications
You must be signed in to change notification settings - Fork 503
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
update to go 1.21.3 #2084
Conversation
Signed-off-by: CrazyMax <[email protected]>
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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
also update config to show all issues at once and set same exlucde rules as buildkit ones. Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
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