mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
fix lint workflow (#4935)
* use go version 1.17 in golanci-lint workflow
This commit is contained in:
parent
6fe78fe302
commit
74555e4bf4
5
.github/workflows/golangci-lint.yml
vendored
5
.github/workflows/golangci-lint.yml
vendored
@ -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
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user