Skip to content

Commit b50bbbe

Browse files
committed
editet ci
1 parent ddbeceb commit b50bbbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/scripts/format-go-code.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ FILEPATH="$1"
66

77
gofmt -s -w "$FILEPATH"
88

9-
# https://github.com/rinchsan/gosimports
9+
# https://github.com/daixiang0/gci
1010
if [[ "$FILEPATH" == *"tests/slo/"* ]]
1111
then
12-
gosimports -local slo -w "$FILEPATH"
12+
gci write --skip-generated -s standard -s default -s "prefix(slo)" "$FILEPATH"
1313
else
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"
1515
fi
1616

1717

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
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

0 commit comments

Comments
 (0)