From 14910ee1a17e8f650b37e7ab8aaaeeb588def253 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 21 Oct 2026 19:03:24 +0200 Subject: modules/cargo: Use inner directory in `shared-target` See the added comment for an explanation. --- modules/by-name/ca/cargo/module.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/by-name') diff --git a/modules/by-name/ca/cargo/module.nix b/modules/by-name/ca/cargo/module.nix index 6a0675d3..6b675a03 100644 --- a/modules/by-name/ca/cargo/module.nix +++ b/modules/by-name/ca/cargo/module.nix @@ -27,7 +27,12 @@ in { cargoHome = "${config.home-manager.users.soispha.xdg.dataHome}/cargo"; settings = { - build.build-dir = "${config.home-manager.users.soispha.xdg.cacheHome}/cargo/shared-target/"; + # NOTE: Don't directly use the `shared-target` path, so we can allow this + # directory in the landrun-fish script and don't get issues because `cargo + # clean` removes it. Otherwise, a `cargo clean` means, that all currently + # running sandboxed shells need to be re-loaded to give them access to the than + # newly created `shared-target` <2026-10-06> + build.build-dir = "${config.home-manager.users.soispha.xdg.cacheHome}/cargo/shared-target/inner/"; }; }; }; -- cgit v1.3.1