xtask: Ignore workspace-hack
when checking for non-workspace dependencies (#29419)
This PR makes it so `workspace-hack` is ignored by `cargo xtask package-conformity` when looking for non-workspace dependencies. Also added `zed_extension_api` to the exclude list. Release Notes: - N/A
This commit is contained in:
parent
9bee765d7f
commit
7443f89a2e
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,12 @@ pub fn run_package_conformity(_args: PackageConformityArgs) -> Result<()> {
|
|||
}
|
||||
|
||||
// Extensions should not use workspace dependencies.
|
||||
if is_extension {
|
||||
if is_extension || package.name == "zed_extension_api" {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Ignore `workspace-hack`, as it produces a lot of false positives.
|
||||
if package.name == "workspace-hack" {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue