File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 42
42
43
43
BUILD_TAGS=rocksdb,grocksdb_clean_link
44
44
go build -tags $BUILD_TAGS ./cmd/chain-maind
45
- golangci-lint run --output.text.path stdout --path-prefix=./ --timeout 30m --build-tags $BUILD_TAGS
45
+ golangci-lint run --fix -- output.text.path stdout --path-prefix=./ --timeout 30m --build-tags $BUILD_TAGS
46
46
# Check only if there are differences in the source code
47
47
if : steps.changed-files.outputs.any_changed == 'true'
48
+ - name : check working directory is clean
49
+ id : changes
50
+ run : |
51
+ set +e
52
+ (git diff --no-ext-diff --exit-code)
53
+ echo "changed=$?" >> $GITHUB_OUTPUT
54
+ - if : steps.changes.outputs.changed == 1
55
+ run : echo "Working directory is dirty" && exit 1
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import (
5
5
"fmt"
6
6
"sort"
7
7
8
- "cosmossdk.io/log"
9
- "cosmossdk.io/store/types"
10
-
11
- "cosmossdk.io/store/rootmulti"
12
8
dbm "github.com/cosmos/cosmos-db"
13
9
"github.com/crypto-org-chain/chain-main/v4/app"
14
10
"github.com/crypto-org-chain/cronos/memiavl"
15
11
"github.com/spf13/cobra"
12
+
13
+ "cosmossdk.io/log"
14
+ "cosmossdk.io/store/rootmulti"
15
+ "cosmossdk.io/store/types"
16
16
)
17
17
18
18
const capaMemStoreKey = "mem_capability"
You can’t perform that action at this time.
0 commit comments