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

hack: update golangci-lint to 1.61 #5314

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

tonistiigi
Copy link
Member

Unblock CI with the schema verify error in 1.60 golangci/golangci-lint#5003

Unblock CI with the schema verify error in 1.60

Signed-off-by: Tonis Tiigi <[email protected]>
@@ -93,6 +93,7 @@ linters-settings:
- G402 # TLS MinVersion too low
- G504 # Import blocklist: net/http/cgi
- G601 # Implicit memory aliasing in for loop (false positives)
- G115 # integer overflow conversion (TODO: verify these)
Copy link
Member Author

Choose a reason for hiding this comment

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

same as moby/moby#48358 . Doesn't look like anything critical here, but we could use some pattern for avoiding overflow.

@@ -37,10 +37,10 @@ func v0TarHeaderSelect(h *tar.Header) (orderedHeaders [][2]string) {

func v1TarHeaderSelect(h *tar.Header) (orderedHeaders [][2]string) {
pax := h.PAXRecords
if len(h.Xattrs) > 0 { // field deprecated in stdlib
if len(h.Xattrs) > 0 { //nolint:staticcheck // field deprecated in stdlib
Copy link
Member Author

Choose a reason for hiding this comment

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

@AkihiroSuda AkihiroSuda merged commit 604d2d0 into moby:master Sep 9, 2024
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants