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.
This commit is contained in:
parent
a658b4a94b
commit
9384f322f6
2
Makefile
2
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..."
|
||||
|
|
Loading…
Reference in New Issue