Skip to content

Commit

Permalink
Fix condaBasePath when useBundled is false, and there's no pre-existi…
Browse files Browse the repository at this point in the history
…ng conda
  • Loading branch information
isuruf committed Nov 26, 2023
1 parent 8874247 commit d42f8b8
Showing 1 changed file with 5 additions and 7 deletions.
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 d42f8b8

Please sign in to comment.