Makefile: silence GOIMPORTS invocation
Because we have to manually determine a list of paths to pass to 'goimports', the command-line invocation can be quite lengthy. It isn't useful to see a large amount of output scroll by in your terminal when trying to build Git LFS when what you really want to see is the 'go build' that gets executed. So, for that reason, let's prefix the $(GOIMPORTS) run with a '@', which will silence the command invocation on the command line. If an error occurs, it will be bubbled up, and we'll be able to see that while the 'set -x'-style output will remain hidden.
This commit is contained in:
parent
6c394eff86
commit
3c0c8ac3c5
2
Makefile
2
Makefile
@ -311,7 +311,7 @@ vendor : glide.lock
|
||||
.PHONY : fmt
|
||||
ifeq ($(shell test -x "`which $(GOIMPORTS)`"; echo $$?),0)
|
||||
fmt : $(SOURCES) | lint
|
||||
$(GOIMPORTS) $(GOIMPORTS_EXTRA_OPTS) $?;
|
||||
@$(GOIMPORTS) $(GOIMPORTS_EXTRA_OPTS) $?;
|
||||
else
|
||||
fmt : $(SOURCES) | lint
|
||||
@echo "git-lfs: skipping fmt, no goimports found at \`$(GOIMPORTS)\` ..."
|
||||
|
Loading…
Reference in New Issue
Block a user