opentelemetry-dotnet-instrumentation
opentelemetry-dotnet-instrumentation copied to clipboard
Refactor Nuke tasks
The current build implementation using Nuke uses different APIs for defining and ordering dependencies, making it hard to maintain.
We should document and use some guidelines to make it more maintainable.
The proposal is to define two types of tasks:
-
target which contains logic and use
After
to specify targets that are required to be built before this one is run, -
workflow which groups targets (or workflows) using
DependsOn
into a suite.
Slack thread: https://cloud-native.slack.com/archives/C01NR1YLSE7/p1656060079086989
The other idea is to only use DependsOn
and one could use --skip
to Skip all dependencies or some specified ones.