diff --git a/dist/setup/index.js b/dist/setup/index.js index 732a387b..6b2f6d59 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -47248,14 +47248,12 @@ const utils = __importStar(__nccwpck_require__(1314)); * Provide current location of miniconda or location where it will be installed */ function condaBasePath(options) { - let condaPath = constants.MINICONDA_DIR_PATH; - if (!options.useBundled) { - if (constants.IS_MAC) { - condaPath = "/Users/runner/miniconda3"; - } - else { - condaPath += "3"; - } + let condaPath; + if (options.useBundled) { + condaPath = constants.MINICONDA_DIR_PATH; + } + else { + condaPath = path.join(os.homedir(), "miniconda3"); } return condaPath; } diff --git a/src/conda.ts b/src/conda.ts index a17be79f..15f3a1b4 100644 --- a/src/conda.ts +++ b/src/conda.ts @@ -17,13 +17,11 @@ import * as utils from "./utils"; * Provide current location of miniconda or location where it will be installed */ export function condaBasePath(options: types.IDynamicOptions): string { - let condaPath: string = constants.MINICONDA_DIR_PATH; - if (!options.useBundled) { - if (constants.IS_MAC) { - condaPath = "/Users/runner/miniconda3"; - } else { - condaPath += "3"; - } + let condaPath: string; + if (options.useBundled) { + condaPath = constants.MINICONDA_DIR_PATH; + } else { + condaPath = path.join(os.homedir(), "miniconda3"); } return condaPath; }