koinos / koinos-proto

Official home of the Koinos Protobuf schema. Koinos data types are defined here and generated in a variety of supported languages.
MIT License
4 stars 7 forks source link

Integrate `podgen` #3

Closed sgerbino closed 3 years ago

sgerbino commented 3 years ago

Having some issues with podgen, our schema produces the following output:

+ GOPATH=/root/go
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/root/go/bin
+ mkdir -p build/cpp build/go
+ find ./schema -name *.capnp
+ ./deps/podgen/podgen ./schema/broadcast.capnp -t deps/podgen/include -o build/cpp -c /usr/local/include
parsing ./schema/broadcast.capnp
  found namespace koinos::broadcast
"./schema/common.capnp"
  parsed import common.capnp with namespace koinos
"./schema/protocol.capnp"
  parsed import protocol.capnp with namespace koinos::protocol
  generating file "/root/sg-koinos-proto/build/cpp/./schema/broadcast.pod.hpp"
terminate called after throwing an instance of 'std::runtime_error'
  what():  namespace not found for import schema/protocol.capnp
Aborted (core dumped)

We decided to just go with Cap'n Proto directly (for now).