You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fail("//go is only meant to be used with 'bazel run', not as a tool. " +
Error in fail: //go is only meant to be used with 'bazel run', not as a tool. If you need to use it as a tool (e.g. in a genrule), please open an issue at https://github.com/bazelbuild/rules_go/issues/new explaining your use case.
This works in CI because the CI runner has go installed , but I think it's a little strange to need to do that
The text was updated successfully, but these errors were encountered:
I'm trying to run a tool that uses
gocommand
(oapi-codegen), and thus needs Go in path in a genrule (it's used with go:generate, so this makes sense).See below script:
I get the below error:
This works in CI because the CI runner has
go
installed , but I think it's a little strange to need to do thatThe text was updated successfully, but these errors were encountered: