fix lint workflow (#4935)

* use go version 1.17 in golanci-lint workflow
This commit is contained in:
Michal Nicpon 2022-04-04 14:14:05 -06:00 committed by GitHub
parent 6fe78fe302
commit 74555e4bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -23,8 +23,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 - uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # v2 uses: golangci/golangci-lint-action@v3
with: with:
# Required: the version of golangci-lint is required and must be # Required: the version of golangci-lint is required and must be
# specified without patch version: we always use the latest patch # specified without patch version: we always use the latest patch

View File

@ -38,6 +38,7 @@ func initFatal(err error, message string) {
} }
func createRootCmd() *cobra.Command { func createRootCmd() *cobra.Command {
// rootCmd represents the base command when called without any subcommands // rootCmd represents the base command when called without any subcommands
rootCmd := &cobra.Command{ rootCmd := &cobra.Command{
Use: "fleet", Use: "fleet",