From 606e5519d3c292bdcaba5c224c3b1bc4d80ed452 Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Thu, 30 Jan 2025 06:20:52 +0900 Subject: [PATCH] Cleanup constants Signed-off-by: Sora Morimoto --- dist/index.js | 6 ++---- dist/post/index.js | 6 ++---- packages/setup-ocaml/src/constants.ts | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/dist/index.js b/dist/index.js index d2fd3c24..b260ccdf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -150182,10 +150182,8 @@ const DUNE_CACHE = lib_core.getBooleanInput("dune-cache"); const OCAML_COMPILER = lib_core.getInput("ocaml-compiler", { required: true }); const OPAM_DISABLE_SANDBOXING = // [TODO] unlock this once sandboxing is supported on Windows -PLATFORM === "windows" - ? true - : lib_core.getBooleanInput("opam-disable-sandboxing"); -const OPAM_LOCAL_PACKAGES = lib_core.getInput("opam-local-packages", {}); +PLATFORM !== "windows" && lib_core.getBooleanInput("opam-disable-sandboxing"); +const OPAM_LOCAL_PACKAGES = lib_core.getInput("opam-local-packages"); const OPAM_PIN = lib_core.getBooleanInput("opam-pin"); const OPAM_REPOSITORIES = (() => { const repositories_yaml = dist/* parse */.qg(lib_core.getInput("opam-repositories")); diff --git a/dist/post/index.js b/dist/post/index.js index fa76b48c..72c28875 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -114836,10 +114836,8 @@ const DUNE_CACHE = lib_core.getBooleanInput("dune-cache"); const OCAML_COMPILER = lib_core.getInput("ocaml-compiler", { required: true }); const constants_OPAM_DISABLE_SANDBOXING = // [TODO] unlock this once sandboxing is supported on Windows -constants_PLATFORM === "windows" - ? true - : lib_core.getBooleanInput("opam-disable-sandboxing"); -const OPAM_LOCAL_PACKAGES = lib_core.getInput("opam-local-packages", {}); +constants_PLATFORM !== "windows" && lib_core.getBooleanInput("opam-disable-sandboxing"); +const OPAM_LOCAL_PACKAGES = lib_core.getInput("opam-local-packages"); const OPAM_PIN = lib_core.getBooleanInput("opam-pin"); const constants_OPAM_REPOSITORIES = (() => { const repositories_yaml = dist/* parse */.qg(lib_core.getInput("opam-repositories")); diff --git a/packages/setup-ocaml/src/constants.ts b/packages/setup-ocaml/src/constants.ts index 5f8e2e7f..6dff0d98 100644 --- a/packages/setup-ocaml/src/constants.ts +++ b/packages/setup-ocaml/src/constants.ts @@ -98,11 +98,9 @@ const OCAML_COMPILER = core.getInput("ocaml-compiler", { required: true }); export const OPAM_DISABLE_SANDBOXING = // [TODO] unlock this once sandboxing is supported on Windows - PLATFORM === "windows" - ? true - : core.getBooleanInput("opam-disable-sandboxing"); + PLATFORM !== "windows" && core.getBooleanInput("opam-disable-sandboxing"); -export const OPAM_LOCAL_PACKAGES = core.getInput("opam-local-packages", {}); +export const OPAM_LOCAL_PACKAGES = core.getInput("opam-local-packages"); export const OPAM_PIN = core.getBooleanInput("opam-pin");