bazel-contrib / rules_cuda

Starlark implementation of bazel rules for CUDA.
https://bazel-contrib.github.io/rules_cuda/
MIT License
92 stars 43 forks source link

fix(bzlmod): allow both root module and our module to call cuda.local_toolchain #264

Closed cloudhan closed 3 months ago

cloudhan commented 3 months ago

Superserde #239

In https://github.com/bazel-contrib/rules_cuda/pull/263#issuecomment-2273722073 a new error popup as expected.

It is caused by the unittest secretly setup our module (rules_cuda, current root module as of invocation of bazel command) as an external module under testing, then the local_cuda is ignore in this case. We shall allow call to module_extenion in both root module and our module.

This in principle also fixes #238.