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.
This commit is contained in:
Yuta Saito 2024-03-23 00:35:24 +09:00
parent fbcfb1191a
commit aef04d7214
1 changed files with 4 additions and 1 deletions

View File

@ -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":