From 9384f322f6206ff9a9ee475453e5d99a10b0e190 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Tue, 17 Jul 2018 13:29:46 -0700 Subject: [PATCH] Prevent make fmt from failing in default case Apologies for the terrible hack. This just makes sure we always have a default file to format, so if the unformatted list is empty we don't error. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 345a27cac..e0791add6 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ dev: deps ## Build and install a development build @cp $(GOPATH)/bin/packer pkg/$(GOOS)_$(GOARCH) fmt: ## Format Go code - @gofmt -w -s $(UNFORMATTED_FILES) + @gofmt -w -s main.go $(UNFORMATTED_FILES) fmt-check: ## Check go code formatting @echo "==> Checking that code complies with gofmt requirements..."