Ok, got it about the repository rule, thanks!
What about transition? As far as I know both transitions and rules are evaluated during the analysis stage.
Currently
I am trying integrate kconfig with bazel. For this I want to make a
transition take a look at output files of specific targets and based on
output change configuration.
It seems that there is a TODO for something like this. I found this comment in ./src/main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkAttributeTransitionProvider.java
```
*
* <p>TODO(bazel-team): Consider allowing dependency-typed attributes to actually return providers
* instead of just labels (see {@link StarlarkAttributesCollection#addAttribute}).
*/
```
--
Kirill