kevinburke / go-bindata

A small utility which generates Go code from any file. Useful for embedding binary data in a Go program.
Other
346 stars 28 forks source link

Go module support #18

Closed igungor closed 5 years ago

igungor commented 5 years ago

Do you plan to add Go modules support?

kevinburke commented 5 years ago

No plans at the moment but if you can explain how or why you need support I might be able to work something out.

igungor commented 5 years ago

I don't necessarily need it, it was just a question if you have any intention to use a go.mod file.

My use case is, for reproducible builds, I'm fetching the necessary tools with their pinned versions. See this:

    go get github.com/gogo/protobuf/protoc-gen-gogo@v1.2.1
    go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.9.1
    go get github.com/nilslice/protolock/cmd/protolock@v0.13.0

For each build, these tools with specific versions are installed to produce the exact same generated code.

Of course go get github.com/kevinburke/go-bindata/go-bindata@v3.3.0 works even if there is no go.mod file. There's no problem in that regard. As I said, it was a question, not a necessity.