-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use task graph instead of traversal (#725)
Lifts the task graph functionality from my task caching work into a separate PR. This removes the complex traversal logical and instead adds a `TaskGraph` struct that holds all the tasks and how they are connected. This PR does not solve which task should come from which environment. That is for a follow-up PR. This is just to lift the code from my previous work. --------- Co-authored-by: Ruben Arts <[email protected]>
- Loading branch information
1 parent
ccbcf9e
commit e180652
Showing
8 changed files
with
485 additions
and
411 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
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 @@ | ||
use miette::Diagnostic; | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, Error, Diagnostic)] | ||
#[error("could not find the task '{task_name}'")] | ||
pub struct MissingTaskError { | ||
pub task_name: String, | ||
} |
Oops, something went wrong.