Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 7bf0388

Browse files
committed
make sure goimports is present
1 parent 6d54eb9 commit 7bf0388

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ target:
2020

2121
.PHONY: format
2222
format:
23+
ifeq (, $(shell which goimports))
24+
go install golang.org/x/tools/cmd/goimports
25+
endif
2326
@echo "Running goimports ..."
2427
@goimports -w -local github.com/tomcz/openldap_exporter $(shell find . -type f -name '*.go' | grep -v '/vendor/')
2528

0 commit comments

Comments
 (0)