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.
pull/6510/head
Matthew Hooker 8 years ago
parent a658b4a94b
commit 9384f322f6
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -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..."

Loading…
Cancel
Save