mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
Fix lint-fix command may fail when .git has new ref (#27354)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
7f7c71ea7d
commit
7bbeebc0d1
5
Makefile
5
Makefile
@ -120,7 +120,10 @@ lint-fix: getdeps
|
||||
echo "gofumpt v$(GOFUMPT_VERSION) already installed"; \
|
||||
fi
|
||||
@echo "Running gofumpt fix"
|
||||
@$(INSTALL_PATH)/gofumpt -l -w .
|
||||
@$(INSTALL_PATH)/gofumpt -l -w internal/
|
||||
@$(INSTALL_PATH)/gofumpt -l -w cmd/
|
||||
@$(INSTALL_PATH)/gofumpt -l -w pkg/
|
||||
@$(INSTALL_PATH)/gofumpt -l -w tests/integration/
|
||||
@echo "Running gci fix"
|
||||
@$(INSTALL_PATH)/gci write cmd/ --skip-generated -s standard -s default -s "prefix(github.com/milvus-io)" --custom-order
|
||||
@$(INSTALL_PATH)/gci write internal/ --skip-generated -s standard -s default -s "prefix(github.com/milvus-io)" --custom-order
|
||||
|
Loading…
Reference in New Issue
Block a user