-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(engine): error about missing package in package task (#9414)
### Description With package tasks being accepted by `run` users can now bypass our package existence check in `--filter`. We add an additional check in the task graph builder where we verify that the `bad-package` in a `turbo run bad-package#task` command will error with a message explaining that `bad-package` doesn't exist. ### Testing Instructions Added unit test that hits this error path along with snapshotting the error message
- Loading branch information
1 parent
1a9214e
commit cdc7ec9
Showing
2 changed files
with
74 additions
and
10 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
9 changes: 9 additions & 0 deletions
9
...ine/snapshots/turborepo_lib__engine__builder__test__run_package_task_invalid_package.snap
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,9 @@ | ||
--- | ||
source: crates/turborepo-lib/src/engine/builder.rs | ||
expression: msg | ||
--- | ||
missing tasks in project | ||
Diagnostic severity: error | ||
|
||
Error: could not find package `app2` in project | ||
Diagnostic severity: error |