diff --git a/dist/index.js b/dist/index.js index 11c8d165..34e6bb8c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -120786,17 +120786,15 @@ async function getOpamLocalPackages() { async function installer() { const platform = getPlatform(); - const numberOfProcessors = external_node_os_namespaceObject.cpus().length; - const isDebug = lib_core.isDebug(); lib_core.exportVariable("OPAMCLI", "2.0"); lib_core.exportVariable("OPAMCOLOR", "always"); lib_core.exportVariable("OPAMERRLOGLEN", 0); - lib_core.exportVariable("OPAMJOBS", numberOfProcessors); + lib_core.exportVariable("OPAMJOBS", external_node_os_namespaceObject.cpus().length); lib_core.exportVariable("OPAMPRECISETRACKING", 1); // [todo] remove this line once we unlock opam 2.2 // https://github.com/ocaml/opam/issues/3447 lib_core.exportVariable("OPAMSOLVERTIMEOUT", 1000); - lib_core.exportVariable("OPAMVERBOSE", isDebug); + lib_core.exportVariable("OPAMVERBOSE", lib_core.isDebug() ? "n" : 0); lib_core.exportVariable("OPAMYES", 1); if (platform === Platform.Win32) { const opamRoot = external_node_path_namespaceObject.join("D:", ".opam"); diff --git a/packages/setup-ocaml/src/installer.ts b/packages/setup-ocaml/src/installer.ts index 65cea272..c6a18604 100644 --- a/packages/setup-ocaml/src/installer.ts +++ b/packages/setup-ocaml/src/installer.ts @@ -36,17 +36,15 @@ import { resolveCompiler } from "./version"; export async function installer() { const platform = getPlatform(); - const numberOfProcessors = os.cpus().length; - const isDebug = core.isDebug(); core.exportVariable("OPAMCLI", "2.0"); core.exportVariable("OPAMCOLOR", "always"); core.exportVariable("OPAMERRLOGLEN", 0); - core.exportVariable("OPAMJOBS", numberOfProcessors); + core.exportVariable("OPAMJOBS", os.cpus().length); core.exportVariable("OPAMPRECISETRACKING", 1); // [todo] remove this line once we unlock opam 2.2 // https://github.com/ocaml/opam/issues/3447 core.exportVariable("OPAMSOLVERTIMEOUT", 1000); - core.exportVariable("OPAMVERBOSE", isDebug); + core.exportVariable("OPAMVERBOSE", core.isDebug() ? "n" : 0); core.exportVariable("OPAMYES", 1); if (platform === Platform.Win32) { const opamRoot = path.join("D:", ".opam");