generate.sh: run ipld gengo

This commit is contained in:
Richard Patel 2022-09-25 14:25:25 +02:00
parent d3b2c3e9a5
commit 6ce807bb2e
No known key found for this signature in database
GPG Key ID: BEC24858656CAF2B
1 changed files with 10 additions and 0 deletions

View File

@ -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