Skip to content

Commit 437d891

Browse files
committed
_
Signed-off-by: Sora Morimoto <[email protected]>
1 parent c4b3b5f commit 437d891

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

dist/index.js

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/setup-ocaml/src/opam.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,17 @@ async function acquireOpamWindows() {
220220
}
221221

222222
async function initializeOpamWindows() {
223-
await exec("git", ["config", "--global", "--add", "safe.directory", "'*'"]);
223+
const disableSandboxing = [];
224+
if (OPAM_DISABLE_SANDBOXING) {
225+
disableSandboxing.push("--disable-sandboxing");
226+
}
224227
await exec("opam", [
225228
"init",
226229
"--auto-setup",
227230
"--bare",
228-
"--disable-sandboxing",
231+
"--cygwin-local-install",
232+
`--cygwin-location=${CYGWIN_ROOT}`,
233+
...disableSandboxing,
229234
"--enable-shell-hook",
230235
]);
231236
}

0 commit comments

Comments
 (0)