Skip to content

Commit

Permalink
Merge pull request #575 from lennyluosz/main
Browse files Browse the repository at this point in the history
Proposal issue#571: check goimports' existance,  go on installing onl…
  • Loading branch information
daniel-hutao authored May 22, 2022
2 parents 7967f20 + 3b3dd67 commit 4a104f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ md5-plugin.%:
.PHONY: fmt
fmt: ## Run 'go fmt' & goimports against code.
@echo ">>>>>>>>>>>> Formating codes"
@go install golang.org/x/tools/cmd/goimports@latest
@[[ -e ${GOPATH}/bin/goimports ]] || (echo "installing goimports ..." && go install golang.org/x/tools/cmd/goimports@latest)
@$(FIND) -type f | xargs gofmt -s -w
@$(FIND) -type f | xargs goimports -w -local $(DTM_ROOT)

Expand Down

0 comments on commit 4a104f1

Please sign in to comment.