Skip to content

Commit aef04d7

Browse files
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.
1 parent fbcfb11 commit aef04d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/carton/main.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ func derivePackageCommandArguments(
8989

9090
switch subcommand {
9191
case "bundle":
92-
pluginArguments += ["--allow-writing-to-package-directory"]
92+
packageArguments += ["--disable-sandbox"]
93+
// TODO: Uncomment this line once we stop creating .carton directory in the home directory
94+
// pluginArguments += ["--allow-writing-to-package-directory"]
95+
9396
// Place before user-given extra arguments to allow overriding default options
9497
cartonPluginArguments = ["--output", "Bundle"] + cartonPluginArguments
9598
case "dev":

0 commit comments

Comments
 (0)