This is somewhat of a one-off hack, and worse, one that doesn't have any tests at the moment.
I'm hoping we can delete the whole ruleInput-traversing code once configuredRuleInputs work properly, so I don't want to spend too much effort on fixing/cleaning this up. But this fixes an issue where we end up with dependency cycles from repos using nogo.
This is somewhat of a one-off hack, and worse, one that doesn't have any tests at the moment.
I'm hoping we can delete the whole ruleInput-traversing code once configuredRuleInputs work properly, so I don't want to spend too much effort on fixing/cleaning this up. But this fixes an issue where we end up with dependency cycles from repos using nogo.
Example of a dep cycle detected from the repro in https://github.com/bazel-contrib/target-determinator/issues/57:
Both
@io_bazel_rules_nogo//:nogo
and//foo_nogo
are alias targets which end up exploding out into multiple configurations causing cycles.Fixes #57