github.com
go is only meant to be used with 'bazel run', not as a tool · Issue #4283 · bazel-contrib/rules_go
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: genrule( name = "gen_api", s...