rules_go icon indicating copy to clipboard operation
rules_go copied to clipboard

go_embed_data deprecation comment is confusing and unhelpful

Open ribrdb opened this issue 3 years ago • 0 comments

What version of rules_go are you using?

v0.32.0

What version of gazelle are you using?

v0.25.0

What version of Bazel are you using?

5.1.1

What did you do?

When you build something that uses go_embed_data, it prints out this message:

Embedding is now better handled by using rules_go's built in https://github.com/bazelbuild/rules_go/blob/master/docs/go/core/embedding.md functionality. The `bindata` rule is deprecated and will be removed in rules_go version 0.35.

What did you expect to see?

I would expect to see a message that talks about the rule I'm using. I've never heard of bindata before. I also expect the url in the message to go somewhere useful. E.g. at a minimum explain how to use go:embed with bazel. Preferably also explain how to migrate from go_embed_data to go:embed

What did you see instead?

The linked page talks about the embed attribute on a go_library, not how to use go:embed.

ribrdb avatar Jun 20 '22 15:06 ribrdb