Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Mar 19, 2020
1 parent 8b5066c commit 24caea9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
20 changes: 10 additions & 10 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32861,6 +32861,16 @@ function setupMiniconda(minicondaVersion, architecture, condaVersion, condaBuild
}
consoleLog("Setup environment variables...");
result = yield setVariables(useBundled);
if (!result["ok"])
return result;
if (condaConfig) {
consoleLog("Applying conda configuration...");
result = yield applyCondaConfiguration(condaConfig, useBundled);
if (!result["ok"])
return result;
}
consoleLog("Setup Conda basic configuration...");
result = yield condaCommand("config --set always_yes yes --set changeps1 no", useBundled);
if (!result["ok"])
return result;
if (condaVersion) {
Expand Down Expand Up @@ -32891,16 +32901,6 @@ function setupMiniconda(minicondaVersion, architecture, condaVersion, condaBuild
return { ok: false, error: err };
}
}
if (condaConfig) {
consoleLog("Applying conda configuration...");
result = yield applyCondaConfiguration(condaConfig, useBundled);
if (!result["ok"])
return result;
}
consoleLog("Setup Conda basic configuration...");
result = yield condaCommand("config --set always_yes yes --set changeps1 no", useBundled);
if (!result["ok"])
return result;
// Any conda commands run here after init and setup
if (condaBuildVersion) {
consoleLog("Installing Conda Build...");
Expand Down
26 changes: 13 additions & 13 deletions src/setup-conda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,19 @@ async function setupMiniconda(
result = await setVariables(useBundled);
if (!result["ok"]) return result;

if (condaConfig) {
consoleLog("Applying conda configuration...");
result = await applyCondaConfiguration(condaConfig, useBundled);
if (!result["ok"]) return result;
}

consoleLog("Setup Conda basic configuration...");
result = await condaCommand(
"config --set always_yes yes --set changeps1 no",
useBundled
);
if (!result["ok"]) return result;

if (condaVersion) {
consoleLog("Installing Conda...");
result = await condaCommand(
Expand Down Expand Up @@ -645,19 +658,6 @@ async function setupMiniconda(
}
}

if (condaConfig) {
consoleLog("Applying conda configuration...");
result = await applyCondaConfiguration(condaConfig, useBundled);
if (!result["ok"]) return result;
}

consoleLog("Setup Conda basic configuration...");
result = await condaCommand(
"config --set always_yes yes --set changeps1 no",
useBundled
);
if (!result["ok"]) return result;

// Any conda commands run here after init and setup
if (condaBuildVersion) {
consoleLog("Installing Conda Build...");
Expand Down

0 comments on commit 24caea9

Please sign in to comment.