From 54f5c249f11de93cdef70d037d58088402ba4cce Mon Sep 17 00:00:00 2001 From: Juan Font Date: Fri, 3 Mar 2023 18:22:47 +0100 Subject: [PATCH] Fix various linting issues + golang-lint upgrade (#1245) --- .github/workflows/lint.yml | 2 +- cmd/headscale/cli/configtest.go | 2 +- integration/hsic/hsic.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 140c321..662a4cf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,7 +30,7 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' uses: golangci/golangci-lint-action@v2 with: - version: v1.49.0 + version: v1.51.2 # Only block PRs on new problems. # If this is not enabled, we will end up having PRs diff --git a/cmd/headscale/cli/configtest.go b/cmd/headscale/cli/configtest.go index 37b7784..72744a7 100644 --- a/cmd/headscale/cli/configtest.go +++ b/cmd/headscale/cli/configtest.go @@ -1,8 +1,8 @@ package cli import ( - "github.com/spf13/cobra" "github.com/rs/zerolog/log" + "github.com/spf13/cobra" ) func init() { diff --git a/integration/hsic/hsic.go b/integration/hsic/hsic.go index d00efe4..08e7806 100644 --- a/integration/hsic/hsic.go +++ b/integration/hsic/hsic.go @@ -108,7 +108,7 @@ func WithPort(port int) Option { } } -// WithTestName sets a a name for the test, this will be reflected +// WithTestName sets a name for the test, this will be reflected // in the Docker container name. func WithTestName(testName string) Option { return func(hsic *HeadscaleInContainer) {