Skip to content

Commit

Permalink
Merge pull request #299 from isuruf/condaBasePath
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca authored Nov 26, 2023
2 parents fab0073 + fa6bdf9 commit d1e04fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
14 changes: 6 additions & 8 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
12 changes: 5 additions & 7 deletions src/conda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d1e04fc

Please sign in to comment.