Fix Makefile

This commit is contained in:
Masaaki Goshima 2021-02-03 23:43:14 +09:00
parent be3d2ff6db
commit 6de0ce6172
1 changed files with 8 additions and 6 deletions

View File

@ -18,9 +18,11 @@ lint: golangci-lint
golangci-lint run
golangci-lint: | $(BIN_DIR)
@set -e; \
@{ \
set -e; \
GOLANGCI_LINT_TMP_DIR=$$(mktemp -d); \
cd $$GOLANGCI_LINT_TMP_DIR; \
go mod init tmp; \
GOBIN=$(BIN_DIR) go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.36.0; \
rm -rf $$GOLANGCI_LINT_TMP_DIR; \
}