From 7365c71e0db875ba8dbf9ee4c6c71e273eebf9b5 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sat, 7 Sep 2024 17:10:30 -0400 Subject: [PATCH] Enable brownouts and update to the correct tags Some tags were never "released" --- Miniforge3/construct.yaml | 2 +- Miniforge3/mambaforge_deprecation.bat | 40 +++++++++++++-------------- Miniforge3/mambaforge_deprecation.sh | 26 +++++++++-------- 3 files changed, 35 insertions(+), 33 deletions(-) diff --git a/Miniforge3/construct.yaml b/Miniforge3/construct.yaml index 5431e1bd..e1d8a764 100644 --- a/Miniforge3/construct.yaml +++ b/Miniforge3/construct.yaml @@ -1,5 +1,5 @@ {% set name = os.environ.get("MINIFORGE_NAME", "Miniforge3") %} -{% set version = os.environ.get("MINIFORGE_VERSION", "24.7.1-0") %} +{% set version = os.environ.get("MINIFORGE_VERSION", "24.7.1-1") %} {% set conda_libmamba_solver_version = "24.7.0"%} # when mamba_version is updated here, also update MICROMAMBA_VERSION # in scripts/build.sh diff --git a/Miniforge3/mambaforge_deprecation.bat b/Miniforge3/mambaforge_deprecation.bat index 603ea1da..79674cab 100644 --- a/Miniforge3/mambaforge_deprecation.bat +++ b/Miniforge3/mambaforge_deprecation.bat @@ -1,25 +1,25 @@ if "%GITHUB_ACTIONS%"=="true" ( - echo ::warning title=Mambaforge is now deprecated!::Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1 + echo ::warning title=Mambaforge is now deprecated!::Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0 ) else ( - msg "%sessionname%" Mambaforge is now deprecated! Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1 + msg "%sessionname%" Mambaforge is now deprecated! Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/. If you require mambaforge, you may pin your installer to one found from https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0 ) -:REM for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%# -:REM if "%_date%"=="2024-10-01" exit 1 -:REM if "%_date%"=="2024-10-15" exit 1 -:REM if "%_date%"=="2024-11-01" exit 1 -:REM if "%_date%"=="2024-11-10" exit 1 -:REM if "%_date%"=="2024-11-20" exit 1 -:REM if "%_date%"=="2024-11-30" exit 1 -:REM if "%_date%"=="2024-12-05" exit 1 -:REM if "%_date%"=="2024-12-10" exit 1 -:REM if "%_date%"=="2024-12-15" exit 1 -:REM if "%_date%"=="2024-12-20" exit 1 -:REM if "%_date%"=="2024-12-25" exit 1 -:REM if "%_date%"=="2024-12-30" exit 1 -:REM if "%_date%"=="2024-12-31" exit 1 -:REM if "%_date:~0,4%"=="2025" exit 1 -:REM -:REM echo Sleeping for 30s... -:REM powershell -nop -c "& {sleep 30}" +for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%# +if "%_date%"=="2024-10-01" exit 1 +if "%_date%"=="2024-10-15" exit 1 +if "%_date%"=="2024-11-01" exit 1 +if "%_date%"=="2024-11-10" exit 1 +if "%_date%"=="2024-11-20" exit 1 +if "%_date%"=="2024-11-30" exit 1 +if "%_date%"=="2024-12-05" exit 1 +if "%_date%"=="2024-12-10" exit 1 +if "%_date%"=="2024-12-15" exit 1 +if "%_date%"=="2024-12-20" exit 1 +if "%_date%"=="2024-12-25" exit 1 +if "%_date%"=="2024-12-30" exit 1 +if "%_date%"=="2024-12-31" exit 1 +if "%_date:~0,4%"=="2025" exit 1 + +echo Sleeping for 30s... +powershell -nop -c "& {sleep 30}" diff --git a/Miniforge3/mambaforge_deprecation.sh b/Miniforge3/mambaforge_deprecation.sh index f73e3160..b46d52cf 100644 --- a/Miniforge3/mambaforge_deprecation.sh +++ b/Miniforge3/mambaforge_deprecation.sh @@ -8,20 +8,22 @@ else echo "We advise you switch to Miniforge at your earliest convenience." echo "More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/." echo "If you are unable to switch to Miniforge, you may pin your installer version to one found in " - echo "https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1" + echo "https://github.com/conda-forge/miniforge/releases/tag/24.3.0-1" echo "or if you lack the system requirements (Linux glibc >= 2.17, or macOS + x86-64bit >= 10.13)" echo "you may pin your installer to one older version found in " echo "https://github.com/conda-forge/miniforge/releases/tag/24.3.0-0" - + echo "This Miniforge installer will ceese to work in 2025." + echo "If you require this Mambaforge installer you may pin to " + echo "https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0" fi -# case $(date +%F) in -# # Brownouts -# 2024-10-01|2024-10-15|2024-11-01|2024-11-10|2024-11-20|2024-11-30|2024-12-05|2024-12-10|2024-12-15|2024-12-20|2024-12-25|2024-12-30|2024-12-31|2025-*) -# exit 1 -# ;; -# *) -# echo "Sleeping for 30s..." -# sleep 30 -# ;; -# esac +case $(date +%F) in + # Brownouts + 2024-10-01|2024-10-15|2024-11-01|2024-11-10|2024-11-20|2024-11-30|2024-12-05|2024-12-10|2024-12-15|2024-12-20|2024-12-25|2024-12-30|2024-12-31|2025-*) + exit 1 + ;; + *) + echo "Sleeping for 30s..." + sleep 30 + ;; +esac