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 run
golangci-lint: | $(BIN_DIR) golangci-lint: | $(BIN_DIR)
@set -e; \ @{ \
GOLANGCI_LINT_TMP_DIR=$$(mktemp -d); \ set -e; \
cd $$GOLANGCI_LINT_TMP_DIR; \ GOLANGCI_LINT_TMP_DIR=$$(mktemp -d); \
go mod init tmp; \ cd $$GOLANGCI_LINT_TMP_DIR; \
GOBIN=$(BIN_DIR) go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.36.0; \ go mod init tmp; \
rm -rf $$GOLANGCI_LINT_TMP_DIR; \ GOBIN=$(BIN_DIR) go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.36.0; \
rm -rf $$GOLANGCI_LINT_TMP_DIR; \
}