From aef04d7214efaede7b51b79cc01812f0533926ef Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sat, 23 Mar 2024 00:35:24 +0900 Subject: [PATCH] Disable sandbox for bundle command too temporarily This is a temporary workaround to fix the issue where the bundle command fails to create ~/.carton directory when it's outdated or missing. We don't need to create .carton directory anymore ideally, but it requires several refactoring to remove it completely Thus, we disable the sandbox for now. --- Sources/carton/main.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/carton/main.swift b/Sources/carton/main.swift index 306650c..55bef55 100644 --- a/Sources/carton/main.swift +++ b/Sources/carton/main.swift @@ -89,7 +89,10 @@ func derivePackageCommandArguments( switch subcommand { case "bundle": - pluginArguments += ["--allow-writing-to-package-directory"] + packageArguments += ["--disable-sandbox"] + // TODO: Uncomment this line once we stop creating .carton directory in the home directory + // pluginArguments += ["--allow-writing-to-package-directory"] + // Place before user-given extra arguments to allow overriding default options cartonPluginArguments = ["--output", "Bundle"] + cartonPluginArguments case "dev":