cake-build / cake-build/cake

IsDependentOn with multiple tasks

Open
#1,462 3 comments 2 reactions 0 assignees View on GitHub
Improvement
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

I'd like to be able to use `IsDependentOn(IEnumerable<> tasks)`:

```c#
var tests = new[]
{
Task("Test 1").Does(() =>
{
// ...
}),
Task("Test 2").Does(() =>
{
// ...
}),
Task("Process output containing format string should succeed").Does(() =>
{
// ...
}),
};

var target = Argument("target", "Default");

Task("Default")
.IsDependentOn(tests);

RunTarget(target);
```

Contributor guide

Open the contributing guide

Research direction

Start at the IsDependentOn API and trace how the existing task dependency call handles its arguments. Confirm how the IEnumerable overload should behave with the tasks in the example, then verify that the Default target depends on all three tasks when RunTarget(target) is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.