diff --git a/Makefile b/Makefile index a168ee138..2de03c8c3 100644 --- a/Makefile +++ b/Makefile @@ -34,3 +34,7 @@ test: build test-clean: go clean -testcache go test ./... + +.PHONY: lint +lint: + golangci-lint run ./... \ No newline at end of file diff --git a/cmd/version.go b/cmd/version.go index 170e57ebd..523546e3a 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -9,7 +9,7 @@ import ( func newVersionCommand() *cli.Command { return &cli.Command{ - Name: "version", + Name: "version", Usage: "dagu version", Action: func(c *cli.Context) error { if constants.Version != "" { diff --git a/go.mod b/go.mod index 9de2ff8c3..807479b18 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/imdario/mergo v0.3.12 github.com/jedib0t/go-pretty/v6 v6.3.1 github.com/mitchellh/mapstructure v1.5.0 + github.com/robfig/cron/v3 v3.0.1 github.com/stretchr/testify v1.7.1 github.com/urfave/cli/v2 v2.4.5 golang.org/x/text v0.3.7 @@ -19,8 +20,7 @@ require ( github.com/mattn/go-runewidth v0.0.13 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rivo/uniseg v0.2.0 // indirect - github.com/robfig/cron/v3 v3.0.1 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect - golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/go.sum b/go.sum index ff0e0752b..6c672bcec 100644 --- a/go.sum +++ b/go.sum @@ -29,8 +29,9 @@ github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMT github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/urfave/cli/v2 v2.4.5 h1:AWCiaqBc+38MxX6nJfjRQyyd2Gq50sOan+AEyv/vFhM= github.com/urfave/cli/v2 v2.4.5/go.mod h1:oDzoM7pVwz6wHn5ogWgFUU1s4VJayeQS+aEZDqXIEJs= -golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c h1:uHnKXcvx6SNkuwC+nrzxkJ+TpPwZOtumbhWrrOYN5YA= golang.org/x/sys v0.0.0-20180816055513-1c9583448a9c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=