@@ -48920,7 +48920,8 @@ function downloadMiniconda(pythonMajorVersion, inputs) {
48920
48920
}
48921
48921
let extension = constants.IS_UNIX ? "sh" : "exe";
48922
48922
let osName = constants.OS_NAMES[process.platform];
48923
- const minicondaInstallerName = `Miniconda${pythonMajorVersion}-${inputs.minicondaVersion}-${osName}-${arch}.${extension}`;
48923
+ let minicondaVersion = inputs.minicondaVersion || "latest";
48924
+ const minicondaInstallerName = `Miniconda${pythonMajorVersion}-${minicondaVersion}-${osName}-${arch}.${extension}`;
48924
48925
core.info(minicondaInstallerName);
48925
48926
// Check version name
48926
48927
let versions = yield minicondaVersions(arch);
@@ -48932,7 +48933,7 @@ function downloadMiniconda(pythonMajorVersion, inputs) {
48932
48933
return yield base.ensureLocalInstaller({
48933
48934
url: constants.MINICONDA_BASE_URL + minicondaInstallerName,
48934
48935
tool: `Miniconda${pythonMajorVersion}`,
48935
- version: inputs. minicondaVersion,
48936
+ version: minicondaVersion,
48936
48937
arch: arch,
48937
48938
});
48938
48939
});
@@ -48948,7 +48949,7 @@ exports.downloadMiniconda = downloadMiniconda;
48948
48949
exports.minicondaDownloader = {
48949
48950
label: "download Miniconda",
48950
48951
provides: (inputs, options) => __awaiter(void 0, void 0, void 0, function* () {
48951
- return inputs.minicondaVersion !== "" && inputs. installerUrl === "";
48952
+ return inputs.installerUrl === "";
48952
48953
}),
48953
48954
installerPath: (inputs, options) => __awaiter(void 0, void 0, void 0, function* () {
48954
48955
return {
@@ -49175,12 +49176,15 @@ const bundled_miniconda_1 = __nccwpck_require__(3390);
49175
49176
* - add any new RULEs in ../input.ts, for example if the installer is not
49176
49177
* compatible with some architectures
49177
49178
* - add a test!
49179
+ * - The order is important:
49180
+ * - the first provider that provides according to the inputs/options is used.
49181
+ * - the last provider has a fallback in case of no inputs given.
49178
49182
*/
49179
49183
const INSTALLER_PROVIDERS = [
49180
49184
bundled_miniconda_1.bundledMinicondaUser,
49181
49185
download_url_1.urlDownloader,
49182
- download_miniconda_1.minicondaDownloader,
49183
49186
download_miniforge_1.miniforgeDownloader,
49187
+ download_miniconda_1.minicondaDownloader,
49184
49188
];
49185
49189
/** See if any provider works with the given inputs and options */
49186
49190
function getLocalInstallerPath(inputs, options) {
0 commit comments