diff --git a/Makefile b/Makefile index b1267bb..50cee3b 100644 --- a/Makefile +++ b/Makefile @@ -10,9 +10,7 @@ setup: ## Install all the build and lint dependencies mkdir -p bin curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh - # FIXME golangci-lint.sh is currently broken, restore installation with curl when it is fixed - # curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh - ( cd $$(mktemp -d) && go mod init tmp && go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.17.1 ) + curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh ifeq ($(OS), Darwin) curl -sfL -o ./bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.6/shellcheck_darwin else @@ -35,8 +33,7 @@ fmt: ## gofmt and goimports all go files find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done lint: ## Run all the linters - # ./bin/golangci-lint run --enable-all ./... - echo nope + ./bin/golangci-lint run --enable-all ./... precommit: lint ## Run precommit hook