Revert "Refactor file formatting target (#1941)" (#1949)

This reverts commit 9029720664. It
was causing unexpected errors on some platforms. More investigation
will be necessary.
This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2022-03-25 17:54:02 -04:00
1 parent 5bdc371fa1
commit 63d3481031
1 file changed
+1 -3
+1 -3
View File
@@ -48,11 +48,9 @@ build: build-ui-ifne
install: export BOUNDARY_INSTALL_BINARY=1
install: build
# Format Go files, ignoring files marked as generated through the header defined at
# https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source
.PHONY: fmt
fmt:
grep -L -R "^\/\/ Code generated .* DO NOT EDIT\.$$" --exclude-dir=.git --include="*.go" | xargs gofumpt -w
gofumpt -w $$(find . -name '*.go' | grep -v pb.go | grep -v pb.gw.go)
# Set env for all UI targets.
UI_TARGETS := update-ui-version build-ui build-ui-ifne