Brightspace / rules_csharp

Bazel rules for C#
Apache License 2.0
8 stars 5 forks source link

Use OutputGroups and/or pre-declared outputs #75

Open j3parker opened 4 years ago

j3parker commented 4 years ago

https://docs.bazel.build/versions/master/skylark/rules.html#requesting-output-files

It's hard to refer to target-framework-specific output from our targets. We should use either OutputGroup providers or pre-declared outputs (maybe both?) to make this easier.

We use the outputs from the first listed target framework to populate DefaultInfo. The idea there was to make bazel run/bazel test only build a small amount of stuff.

That being said, we probably want it to be easy, via the CLI and via labels, to get the other frameworks. Predeclared outputs look like they'd give us labels, OutputGroups look like they'd be handy for the CLI.

This requires a bit of investigation still.