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

Fix golangci-lint 1.54.2 errors #2653

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

tpantelis
Copy link
Contributor

Ignore this one as the aliasing is OK here:

pkg/cable/wireguard/getconnections.go:66:28: G601: Implicit memory aliasing in for loop. (gosec)
		if k, err := keyFromSpec(&con.Endpoint); err == nil {
pkg/netlink/fake/netlink.go:56:2: directive `//nolint:errorlint // The given error should not be wrapped.` is unused for linter "errorlint" (nolintlint)
	//nolint:errorlint // The given error should not be wrapped.

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr2653/tpantelis/fix_lint_errs
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@sridhargaddam
Copy link
Member

There are some linter errors.

@skitt
Copy link
Member

skitt commented Aug 22, 2023

There are some linter errors.

The first one needs an additional comment, and the second one will be fixed when Shipyard bumps to 1.54.2 (which means submariner-io/shipyard#1344 needs to be merged before this).

@tpantelis tpantelis force-pushed the fix_lint_errs branch 2 times, most recently from e31f3a0 to 8465f26 Compare August 22, 2023 12:10
Ignore this one as the aliasing is OK here:

pkg/cable/wireguard/getconnections.go:66:28:
    G601: Implicit memory aliasing in for loop. (gosec)
        if k, err := keyFromSpec(&con.Endpoint); err == nil {

pkg/netlink/fake/netlink.go:56:2: directive `//nolint:errorlint...` is
   unused for linter "errorlint" (nolintlint)
       //nolint:errorlint // The given error should not be wrapped.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Aug 22, 2023
@sridhargaddam sridhargaddam merged commit 75c46f8 into submariner-io:devel Aug 23, 2023
39 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr2653/tpantelis/fix_lint_errs]

@tpantelis tpantelis deleted the fix_lint_errs branch October 24, 2023 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants