Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

24.7.1-1 -- Enable brownouts and update to the correct tags #640

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Miniforge3/construct.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
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/. 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}"
26 changes: 14 additions & 12 deletions Miniforge3/mambaforge_deprecation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading