From 7443f89a2e735dc5cfe5c44be356e7eb9e460717 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 25 Apr 2025 11:01:53 -0400 Subject: [PATCH] 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 --- tooling/xtask/src/tasks/package_conformity.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tooling/xtask/src/tasks/package_conformity.rs b/tooling/xtask/src/tasks/package_conformity.rs index fe7d6672fb..b594798d26 100644 --- a/tooling/xtask/src/tasks/package_conformity.rs +++ b/tooling/xtask/src/tasks/package_conformity.rs @@ -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; }