mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
enhance: skip gci for boring_enabled.go to resolve gofumpt/gci format conflict (#48691)
gci misclassifies crypto/boring as a third-party package, but it is actually a Go standard library package (available in BoringCrypto builds). This conflicts with gofumpt which correctly identifies it as standard, causing the two tools to produce different import groupings and making lint-fix non-idempotent. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
@@ -206,7 +206,8 @@ lint-fix: getdeps
|
||||
@$(INSTALL_PATH)/gofumpt -l -w tests/go_client/
|
||||
@$(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
|
||||
# Skip boring_enabled.go: gci misclassifies crypto/boring (a std lib package) as third-party, conflicting with gofumpt
|
||||
@find cmd/ -name '*.go' ! -name 'boring_enabled.go' | xargs $(INSTALL_PATH)/gci write --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
|
||||
@$(INSTALL_PATH)/gci write pkg/ --skip-generated -s standard -s default -s "prefix(github.com/milvus-io)" --custom-order
|
||||
@$(INSTALL_PATH)/gci write client/ --skip-generated -s standard -s default -s "prefix(github.com/milvus-io)" --custom-order
|
||||
|
||||
Reference in New Issue
Block a user