From 63d34810315bf44afb3e5fb6b0ef8ee4b53dfd47 Mon Sep 17 00:00:00 2001 From: Johan Brandhorst-Satzkorn Date: Fri, 25 Mar 2022 17:54:02 -0400 Subject: [PATCH] Revert "Refactor file formatting target (#1941)" (#1949) This reverts commit 90297206648218192a9c386419b6798b8c7b1408. It was causing unexpected errors on some platforms. More investigation will be necessary. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7279b942c2..2be2d0f1de 100644 --- a/Makefile +++ b/Makefile @@ -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