ci: Fix cbor gen check

This commit is contained in:
Łukasz Magiera 2021-03-23 17:33:20 +01:00
parent efccf7d730
commit 421338b9f4
3 changed files with 4 additions and 2 deletions

View File

@ -399,7 +399,7 @@ jobs:
- run: make deps
- run: go install golang.org/x/tools/cmd/goimports
- run: go install github.com/hannahhoward/cbor-gen-for
- run: go generate ./...
- run: make type-gen
- run: git --no-pager diff
- run: git --no-pager diff --quiet

View File

@ -321,6 +321,7 @@ dist-clean:
type-gen:
go run ./gen/main.go
go generate ./...
goimports -w api/
method-gen:
(cd ./lotuspond/front/src/chain && go run ./methodgen.go)

View File

@ -6,6 +6,8 @@ package mocks
import (
context "context"
reflect "reflect"
address "github.com/filecoin-project/go-address"
bitfield "github.com/filecoin-project/go-bitfield"
datatransfer "github.com/filecoin-project/go-data-transfer"
@ -32,7 +34,6 @@ import (
network0 "github.com/libp2p/go-libp2p-core/network"
peer "github.com/libp2p/go-libp2p-core/peer"
protocol "github.com/libp2p/go-libp2p-core/protocol"
reflect "reflect"
)
// MockFullNode is a mock of FullNode interface