File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ FILEPATH="$1"
66
77gofmt -s -w " $FILEPATH "
88
9- # https://github.com/rinchsan/gosimports
9+ # https://github.com/daixiang0/gci
1010if [[ " $FILEPATH " == * " tests/slo/" * ]]
1111then
12- gosimports -local slo -w " $FILEPATH "
12+ gci write --skip-generated -s standard -s default -s " prefix(slo) " " $FILEPATH "
1313else
14- gosimports -local github.com/ydb-platform/ydb-go-sdk/v3 -w " $FILEPATH "
14+ gci write --skip-generated -s standard -s default -s " prefix( github.com/ydb-platform/ydb-go-sdk/v3) " " $FILEPATH "
1515fi
1616
1717
Original file line number Diff line number Diff line change 6969 - name : Install utilities
7070 run : |
7171 go install mvdan.cc/gofumpt@v0.3.1
72- go install github.com/rinchsan/gosimports/cmd/gosimports @v0.1.5
72+ go install go install github.com/daixiang0/gci @v0.12.1
7373 - name : format all files with auto-formatter
7474 run : bash ./.github/scripts/format-all-go-code.sh "$PWD"
7575 - name : Check repository diff
You can’t perform that action at this time.
0 commit comments