diff --git a/Makefile b/Makefile index 3f00929..bb70400 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ endif GOBUILD ?= CGO_ENABLED=0 go build PACKAGES ?= $(shell go list ./...) -SOURCES ?= $(shell find . -name "*.go" -type f) +SOURCES ?= $(shell find . -name "*.go" -type f -not -path ./.devenv/\* -not -path ./.direnv/\*) GENERATE ?= $(PACKAGES) TAGS ?= netgo diff --git a/pkg/command/cmd.go b/pkg/command/cmd.go index 2e796d0..e78c75a 100644 --- a/pkg/command/cmd.go +++ b/pkg/command/cmd.go @@ -15,7 +15,7 @@ var ( SilenceErrors: false, SilenceUsage: true, - PersistentPreRunE: func(ccmd *cobra.Command, args []string) error { + PersistentPreRunE: func(_ *cobra.Command, _ []string) error { return setupLogger() }, diff --git a/pkg/command/generate.go b/pkg/command/generate.go index ed467d7..882d8b7 100644 --- a/pkg/command/generate.go +++ b/pkg/command/generate.go @@ -21,7 +21,7 @@ var ( Aliases: []string{"gen"}, Short: "Generate output from template", Run: generateAction, - Args: func(cmd *cobra.Command, args []string) error { + Args: func(_ *cobra.Command, args []string) error { if len(args) != 1 { return fmt.Errorf("missing template argument") }