Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Jun 10, 2024
1 parent c4b3b5f commit 437d891
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions packages/setup-ocaml/src/opam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,17 @@ async function acquireOpamWindows() {
}

async function initializeOpamWindows() {
await exec("git", ["config", "--global", "--add", "safe.directory", "'*'"]);
const disableSandboxing = [];
if (OPAM_DISABLE_SANDBOXING) {
disableSandboxing.push("--disable-sandboxing");
}
await exec("opam", [
"init",
"--auto-setup",
"--bare",
"--disable-sandboxing",
"--cygwin-local-install",
`--cygwin-location=${CYGWIN_ROOT}`,
...disableSandboxing,
"--enable-shell-hook",
]);
}
Expand Down

0 comments on commit 437d891

Please sign in to comment.