Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

xtask: Ignore `workspace-hack` when checking for non-workspace dependencies (#29419)

Marshall Bowers7443f89a2e73
diff --git a/tooling/xtask/src/tasks/package_conformity.rs b/tooling/xtask/src/tasks/package_conformity.rs
index fe7d6672fb6..b594798d260 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;
}