Skip to content

Commit

Permalink
remove nilerr
Browse files Browse the repository at this point in the history
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
  • Loading branch information
satoru-takeuchi authored and daichimukai committed Jul 25, 2022
1 parent 1a712db commit aa824d5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ vet: ## Run go vet against code.

test: manifests generate tools fmt vet ## Run tests.
$(shell go env GOPATH)/bin/staticcheck ./...
test -z "$$($(shell go env GOPATH)/bin/nilerr ./... 2>&1 | tee /dev/stderr)"
go install ./...
source <($(SETUP_ENVTEST) use -p env $(ENVTEST_K8S_VERSION)); \
go test -race -v -count 1 ./... --timeout=60s
Expand Down Expand Up @@ -101,20 +100,14 @@ push: ## Push docker image.
##@ Tools

.PHONY: tools
tools: staticcheck nilerr setup-envtest
tools: staticcheck setup-envtest

.PHONY: staticcheck
staticcheck: ## Install staticcheck
if ! which staticcheck >/dev/null; then \
env GOFLAGS= go install honnef.co/go/tools/cmd/staticcheck@latest; \
fi

.PHONY: nilerr
nilerr: ## Install nilerr
if ! which nilerr >/dev/null; then \
env GOFLAGS= go install github.com/gostaticanalysis/nilerr/cmd/nilerr@latest; \
fi

SETUP_ENVTEST := $(BINDIR)/setup-envtest
.PHONY: setup-envtest
setup-envtest: $(SETUP_ENVTEST) ## Download setup-envtest locally if necessary
Expand Down

0 comments on commit aa824d5

Please sign in to comment.