diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 0e14e6ab0..b2cc03ac8 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,8 +23,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 + - uses: actions/setup-go@v2 + with: + go-version: '1.17' - name: golangci-lint - uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # v2 + uses: golangci/golangci-lint-action@v3 with: # Required: the version of golangci-lint is required and must be # specified without patch version: we always use the latest patch diff --git a/cmd/fleet/main.go b/cmd/fleet/main.go index 15d70752b..3164b17f4 100644 --- a/cmd/fleet/main.go +++ b/cmd/fleet/main.go @@ -38,6 +38,7 @@ func initFatal(err error, message string) { } func createRootCmd() *cobra.Command { + // rootCmd represents the base command when called without any subcommands rootCmd := &cobra.Command{ Use: "fleet",