diff --git a/Makefile b/Makefile index 313cbf4..4393919 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 eacc333..88efde6 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() },