-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(task): ensure root config always looks up dependencies in root (#…
…26959) We were accidentally looking up dependencies in the member.
- Loading branch information
Showing
10 changed files
with
202 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "task a", | ||
"cwd": "member", | ||
"output": "task.out" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"tasks": { | ||
"a": "echo root-a", | ||
"b": { | ||
"dependencies": ["a"], | ||
"command": "echo b" | ||
} | ||
}, | ||
"workspace": ["./member"] | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/specs/task/dependencies_root_not_cycle/member/deno.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"tasks": { | ||
"a": { | ||
"dependencies": ["b"], | ||
"command": "echo a" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Task a echo root-a | ||
root-a | ||
Task b echo b | ||
b | ||
Task a echo a | ||
a |
14 changes: 14 additions & 0 deletions
14
tests/specs/task/dependencies_shadowed_root_name/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"tests": { | ||
"root_dependending_root": { | ||
"args": "task root-depending-root", | ||
"cwd": "member", | ||
"output": "root_dependending_root.out" | ||
}, | ||
"member_depending_root_and_member": { | ||
"args": "task member-dependending-root-and-member", | ||
"cwd": "member", | ||
"output": "member_depending_root_and_member.out" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/specs/task/dependencies_shadowed_root_name/deno.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"tasks": { | ||
"build": "echo root", | ||
"root-depending-root": { | ||
"dependencies": [ | ||
"build" | ||
], | ||
"command": "echo test" | ||
} | ||
}, | ||
"workspace": ["./member"] | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/specs/task/dependencies_shadowed_root_name/member/deno.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"tasks": { | ||
"build": "echo member", | ||
"member-dependending-root-and-member": { | ||
"dependencies": [ | ||
"build", | ||
"root-depending-root" | ||
], | ||
"command": "echo member-test" | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/specs/task/dependencies_shadowed_root_name/member_depending_root_and_member.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[UNORDERED_START] | ||
Task build echo member | ||
member | ||
Task build echo root | ||
root | ||
Task root-depending-root echo test | ||
test | ||
[UNORDERED_END] | ||
Task member-dependending-root-and-member echo member-test | ||
member-test |
4 changes: 4 additions & 0 deletions
4
tests/specs/task/dependencies_shadowed_root_name/root_dependending_root.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Task build echo root | ||
root | ||
Task root-depending-root echo test | ||
test |