]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Run diff without sandbox
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 1 Oct 2024 20:33:45 +0000 (22:33 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 1 Oct 2024 20:33:45 +0000 (22:33 +0200)
have_cache() is called in run_clean() now which means we're not
guaranteed to have a tools tree available so let's run diff without
a tools tree.

mkosi/__init__.py

index 4d53cef4ab4412b6b890f94d23f71b1a360d9525..f14ecc13eff26ac85c826910a0dfe50a77b5f227 100644 (file)
@@ -2781,7 +2781,11 @@ def have_cache(config: Config) -> bool:
                     ["diff", "--unified", manifest, "-"],
                     input=new,
                     check=False,
-                    sandbox=config.sandbox(binary="diff", options=["--bind", manifest, manifest]),
+                    sandbox=config.sandbox(
+                        binary="diff",
+                        tools=False,
+                        options=["--bind", manifest, manifest],
+                    ),
                 )
 
             return False