mirror of https://github.com/goccy/go-json.git
Fix Makefile
This commit is contained in:
parent
be3d2ff6db
commit
6de0ce6172
14
Makefile
14
Makefile
|
@ -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; \
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue