don't error on macOS if sandbox for vars is missing

This commit is contained in:
Jörg Thalheim
2025-04-14 13:59:52 +02:00
parent 9276b166f0
commit ef5d62a1c1

View File

@@ -209,7 +209,8 @@ def execute_generator(
final_script = generator.final_script()
if sys.platform == "linux" and bwrap.bubblewrap_works():
if sys.platform == "linux":
if bwrap.bubblewrap_works():
cmd = bubblewrap_cmd(str(final_script), tmpdir)
else:
if not no_sandbox:
@@ -219,6 +220,9 @@ def execute_generator(
)
raise ClanError(msg)
cmd = ["bash", "-c", str(final_script)]
else:
# TODO: implement sandboxing for macOS using sandbox-exec
cmd = ["bash", "-c", str(final_script)]
run(cmd, RunOpts(env=env))
files_to_commit = []
# store secrets