nogo: Create a go_register_nogo wrapper for WORKSPACE users. (#3842)
* nogo: Create a go_register_nogo wrapper for WORKSPACE users.
Currently, workspace users register nogo targets by abusing the
go_register_toolchain() function, which calls go_register_nogo().
Instead, we should expose go_register_nogo to workspace users directly.
This will allow workspace users and bzlmod users to use the same
underlying code because go_register_nogo allows users to specify
includes and excludes which you currently can't do with WORKSPACE.
Add a test to verify this functionality works in WORKSPACE too.
* Exclude running on bazel 5.4.0
11 files changed