From 4b9113af4fba0e9e1124b252dd6497a419e7396d Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 3 Oct 2024 15:01:48 +0200 Subject: [PATCH] pin micromamba default version to 1.* (#232) --- .github/workflows/test.yml | 3 ++ dist/licenses.txt | 70 ++++++++++++++++++++++++++++++++++++++ dist/main.js | 2 +- dist/post.js | 2 +- package.json | 2 +- src/options.ts | 2 +- 6 files changed, 77 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5da03f..d985f54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./ + with: + micromamba-version: 2.0.2-0 - run: | micromamba info | grep -q "environment : base" shell: bash -el {0} @@ -168,6 +170,7 @@ jobs: with: environment-file: 'test/environment.yml' condarc-file: 'test/.condarc' + micromamba-version: 2.0.2-0 - run: | # this should only work when the pytorch channel is loaded, i.e., the custom condarc is used micromamba search pytorch=2.0.0 micromamba search pytorch=2.0.0 | grep -q "pytorch 2.0.0 py3.10_cpu_0" diff --git a/dist/licenses.txt b/dist/licenses.txt index 113f524..0fc71b4 100644 --- a/dist/licenses.txt +++ b/dist/licenses.txt @@ -730,6 +730,31 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. --- +The following software may be included in this product: form-data (2.5.1) +This software contains the following license and notice below: + +Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +--- + The following software may be included in this product: form-data (4.0.0) This software contains the following license and notice below: @@ -1021,6 +1046,33 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI --- +The following software may be included in this product: uuid (3.4.0) +This software contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2010-2016 Robert Kieffer and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + The following software may be included in this product: uuid (8.3.2) This software contains the following license and notice below: @@ -1740,6 +1792,24 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- +The following software may be included in this product: tslib (1.14.1) +This software contains the following license and notice below: + +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +--- + The following software may be included in this product: tslib (2.6.2) This software contains the following license and notice below: diff --git a/dist/main.js b/dist/main.js index 7ba6b20..5042e2a 100644 --- a/dist/main.js +++ b/dist/main.js @@ -82690,7 +82690,7 @@ var determineMicromambaInstallation = (micromambaBinPath, downloadMicromamba2) = var inferOptions = (inputs) => { const createEnvironment2 = inputs.environmentName !== void 0 || inputs.environmentFile !== void 0; const logLevel = inputs.logLevel || (core3.isDebug() ? "debug" : "warning"); - const micromambaSource = inputs.micromambaUrl ? (0, import_Either2.right)(inputs.micromambaUrl) : (0, import_Either2.left)(inputs.micromambaVersion || "latest"); + const micromambaSource = inputs.micromambaUrl ? (0, import_Either2.right)(inputs.micromambaUrl) : (0, import_Either2.left)(inputs.micromambaVersion || "1.5.10-0"); const writeToCondarc = inputs.condarcFile === void 0; const initShell = !inputs.initShell ? ["bash"] : inputs.initShell.includes("none") ? [] : inputs.initShell; const { downloadMicromamba: downloadMicromamba2, micromambaBinPath } = determineMicromambaInstallation( diff --git a/dist/post.js b/dist/post.js index 5deccbb..2904093 100644 --- a/dist/post.js +++ b/dist/post.js @@ -81733,7 +81733,7 @@ var determineMicromambaInstallation = (micromambaBinPath, downloadMicromamba) => var inferOptions = (inputs) => { const createEnvironment = inputs.environmentName !== void 0 || inputs.environmentFile !== void 0; const logLevel = inputs.logLevel || (core3.isDebug() ? "debug" : "warning"); - const micromambaSource = inputs.micromambaUrl ? (0, import_Either.right)(inputs.micromambaUrl) : (0, import_Either.left)(inputs.micromambaVersion || "latest"); + const micromambaSource = inputs.micromambaUrl ? (0, import_Either.right)(inputs.micromambaUrl) : (0, import_Either.left)(inputs.micromambaVersion || "1.5.10-0"); const writeToCondarc = inputs.condarcFile === void 0; const initShell = !inputs.initShell ? ["bash"] : inputs.initShell.includes("none") ? [] : inputs.initShell; const { downloadMicromamba, micromambaBinPath } = determineMicromambaInstallation( diff --git a/package.json b/package.json index 43bc74f..cbca5c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-micromamba", - "version": "1.10.0", + "version": "1.11.0", "private": true, "description": "Action to setup micromamba", "scripts": { diff --git a/src/options.ts b/src/options.ts index df08a1b..b875054 100644 --- a/src/options.ts +++ b/src/options.ts @@ -146,7 +146,7 @@ const inferOptions = (inputs: Inputs): Options => { // if micromambaUrl is specified, use that, otherwise use micromambaVersion (or 'latest' if not specified) const micromambaSource = inputs.micromambaUrl ? right(inputs.micromambaUrl) - : left(inputs.micromambaVersion || 'latest') + : left(inputs.micromambaVersion || '1.5.10-0') // we write to condarc if a condarc file is not already specified const writeToCondarc = inputs.condarcFile === undefined