capnproto / go-capnp

Cap'n Proto library and code generator for Go

Home Page:https://capnproto.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a package.go in /std?

steve-gray opened this issue · comments

We're trying to use capnproto with our CI solution, which avoids go get's at runtime. Because of the lack of a .go file in the STD folder, the go.capnp file can't be picked up by vendoring. Would it be possible to add one, so that we can vendor ./std and use a deterministic path to pick up this file in go:generates?

@steve-gray Just to make sure I understand, would something like a [doc.go] file do the trick? In other words, you just need a .go file in the directory, but it doesn't need to contain any actual Go code, correct?

If so, that sounds good to me. Please feel free to open a PR 👍