You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kustomize: $(KUSTOMIZE)## Download kustomize locally if necessary. If wrong version is installed, it will be removed before downloading.
@@ -279,10 +283,19 @@ dev-run:
279
283
## todo: add flag --debug
280
284
go run ./cmd/main.go
281
285
286
+
287
+
$(GOLANGCILINT): $(LOCALBIN)
288
+
@if test -x $(LOCALBIN)/golangci-lint &&!$(LOCALBIN)/golangci-lint version | grep -q $(GOLANGCILINT_VERSION);then\
289
+
echo"$(LOCALBIN)/golangci-lint version is not expected $(GOLANGCILINT_VERSION). Removing it before installing.";\
290
+
rm -rf $(LOCALBIN)/golangci-lint;\
291
+
fi
292
+
test -s $(golangci-lint)/golangci-lint || GOBIN=$(LOCALBIN) GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCILINT_VERSION)
0 commit comments