Skip to content

update golangci-lint to v1.59.1#48058

Merged
thaJeztah merged 3 commits intomoby:masterfrom
thaJeztah:bump_golangci_lint
Jun 26, 2024
Merged

update golangci-lint to v1.59.1#48058
thaJeztah merged 3 commits intomoby:masterfrom
thaJeztah:bump_golangci_lint

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

builder/remotecontext: reformat code to make #nosec comment work again

Looks like the way it picks up #nosec comments changed, causing the
linter error to re-appear;

builder/remotecontext/remote.go:48:17: G107: Potential HTTP request made with variable url (gosec)
    if resp, err = http.Get(address); err != nil {
                   ^

pkg/archive: reformat code to make #nosec comment work again

Looks like the way it picks up #nosec comments changed, causing the
linter error to re-appear;

pkg/archive/archive_linux.go:57:17: G305: File traversal when extracting zip/tar archive (gosec)
                Name:       filepath.Join(hdr.Name, WhiteoutOpaqueDir),
                            ^

update golangci-lint to v1.59.1

full diff: golangci/golangci-lint@v1.55.2...v1.59.1

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Looks like the way it picks up #nosec comments changed, causing the
linter error to re-appear;

    builder/remotecontext/remote.go:48:17: G107: Potential HTTP request made with variable url (gosec)
        if resp, err = http.Get(address); err != nil {
                       ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Looks like the way it picks up #nosec comments changed, causing the
linter error to re-appear;

    pkg/archive/archive_linux.go:57:17: G305: File traversal when extracting zip/tar archive (gosec)
                    Name:       filepath.Join(hdr.Name, WhiteoutOpaqueDir),
                                ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah merged commit f6d0d2f into moby:master Jun 26, 2024
@thaJeztah thaJeztah deleted the bump_golangci_lint branch June 26, 2024 13:48
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