generate.sh: run ipld gengo
This commit is contained in:
parent
d3b2c3e9a5
commit
6ce807bb2e
10
generate.sh
10
generate.sh
|
@ -21,3 +21,13 @@ then
|
|||
rm -f ./pkg/gossip/schema.go.bak
|
||||
go fmt ./pkg/gossip/schema.go
|
||||
fi
|
||||
|
||||
# go install github.com/ipld/go-ipldtool
|
||||
if command -v ipld &> /dev/null
|
||||
then
|
||||
ipld schema codegen \
|
||||
--generator=go-gengo \
|
||||
--package=ipldsch \
|
||||
--output=./pkg/ipld/ipldsch \
|
||||
./pkg/ipld/ipldsch/ledger.ipld
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue