Closed layus closed 1 month ago
There is a chain of something like external_includes != _UNBOUND or \
, and the external_includes
triggers the forbidden internal API..., looking into the _PRIVATE_STARLARKIFICATION_ALLOWLIST
and you will notice that they are doing really dumb things and violate the open–closed principle by hardcoding the rule name... 🤦
So it seems that external_includes are part of the internal API, and we are not supposed to use them. Maybe there is a way to merge compilation contexts without tearing it apart and recreating it like we do here ?
For now, I found a simple hotfix:
cuda_library(
...
features = ["-external_include_paths"],
)
I think it is workaroundable, you might just want to consume the external_includes (direct on the target or from deps), but dont propagate it forward by the cc_info.
With this PR I get a strange error about forbidden internal API.
Fixes #266