go-capnp icon indicating copy to clipboard operation
go-capnp copied to clipboard

Add a package.go in /std?

Open steve-gray opened this issue 3 years ago • 2 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 avatar Oct 12 '22 10:10 steve-gray

I would not have an objection to this.

Quoting Steve Gray (2022-10-12 06:48:05)

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?

-- Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe. You are receiving this because you are subscribed to this thread. Message ID: @.***>

Verweise

  1. https://github.com/capnproto/go-capnproto2/issues/319
  2. https://github.com/notifications/unsubscribe-auth/AAGXYPROYU2RPVDTUC3P3BTWC2JOLANCNFSM6AAAAAARDFBEQM

zenhack avatar Oct 12 '22 16:10 zenhack

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

lthibault avatar Oct 14 '22 21:10 lthibault