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:
Marshall Bowers 2025-04-25 11:01:53 -04:00 committed by GitHub
parent 9bee765d7f
commit 7443f89a2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}