From 911ce46ce14bf45050c381fcd8af61748b1d7a0d Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 19:32:58 -0700 Subject: [PATCH] fix(deny): clarify the license of the workspace crates the Windows and KDE deny checks see The root and KDE deny.toml only clarified the old crate names, so cargo deny failed with unlicensed for the crates of the unified workspace. The root deny.toml gets entries (LicenseRef-Komorebi-2.0, as for the existing ones) for komorebi-backend, -bar-core, -collections, -config, -core, -protocol, -settings, -transport, komorebic-core, komorebi-e2e-agent and komorebi-testwin; the KDE one for the same crates that it sees. The KDE deny check also excludes komorebi-bar-core, which is not a KDE dependency and brings the git egui-phosphor source that the KDE policy does not allow. Verified: cargo deny --offline --workspace with the flake's --exclude lists and `check --config bans licenses sources` (nix shell nixpkgs#cargo-deny): root, KDE and macOS: bans ok, licenses ok, sources ok (before: licenses FAILED for root and KDE, sources FAILED for KDE); taplo --check passes on both files. Not built in nix. --- deny.toml | 55 ++++++++++++++++++++++++++++++++++++++ komorebi-for-kde/deny.toml | 51 +++++++++++++++++++++++++++++++++++ komorebi-for-kde/flake.nix | 1 + 3 files changed, 107 insertions(+) diff --git a/deny.toml b/deny.toml index 61f56194..65b0694b 100644 --- a/deny.toml +++ b/deny.toml @@ -97,6 +97,61 @@ crate = "komorebi-shortcuts" expression = "LicenseRef-Komorebi-2.0" license-files = [] +[[licenses.clarify]] +crate = "komorebi-backend" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-bar-core" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-collections" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-config" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-core" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-e2e-agent" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-protocol" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-settings" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-testwin" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-transport" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebic-core" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + [[licenses.clarify]] crate = "whkd-core" expression = "LicenseRef-Komorebi-2.0" diff --git a/komorebi-for-kde/deny.toml b/komorebi-for-kde/deny.toml index eab867dd..a474e33a 100644 --- a/komorebi-for-kde/deny.toml +++ b/komorebi-for-kde/deny.toml @@ -88,6 +88,57 @@ crate = "base16-egui-themes" expression = "MIT" license-files = [] + +[[licenses.clarify]] +crate = "komorebi-backend" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-client" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-collections" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-config" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-core" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-protocol" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-settings" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebi-transport" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebic" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + +[[licenses.clarify]] +crate = "komorebic-core" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + [bans] multiple-versions = "allow" wildcards = "allow" diff --git a/komorebi-for-kde/flake.nix b/komorebi-for-kde/flake.nix index 13dab98e..a1c4fc83 100644 --- a/komorebi-for-kde/flake.nix +++ b/komorebi-for-kde/flake.nix @@ -374,6 +374,7 @@ cargoDenyExtraArgs = "--workspace " + lib.concatMapStringsSep " " (p: "--exclude ${p}") [ + "komorebi-bar-core" "komorebi-windows" "komorebi-gui" "komorebic-no-console"