Skip to content

Commit

Permalink
Additional information on what installers don't have this brownout
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Aug 24, 2024
1 parent 4c2f12c commit 920ccd7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 30 deletions.
40 changes: 20 additions & 20 deletions Miniforge3/mambaforge_deprecation.bat
Original file line number Diff line number Diff line change
@@ -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/.
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
)
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/.
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
)

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}"
: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}"
26 changes: 16 additions & 10 deletions Miniforge3/mambaforge_deprecation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ else
echo "Future Miniforge releases will NOT build Mambaforge installers."
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 "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"

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

0 comments on commit 920ccd7

Please sign in to comment.