Skip to content

Commit 216bbc2

Browse files
authored
Merge pull request #640 from hmaarrfk/brownouts_enabled
24.7.1-1 -- Enable brownouts and update to the correct tags
2 parents 102debd + 7365c71 commit 216bbc2

File tree

3 files changed

+35
-33
lines changed

3 files changed

+35
-33
lines changed

Miniforge3/construct.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = os.environ.get("MINIFORGE_NAME", "Miniforge3") %}
2-
{% set version = os.environ.get("MINIFORGE_VERSION", "24.7.1-0") %}
2+
{% set version = os.environ.get("MINIFORGE_VERSION", "24.7.1-1") %}
33
{% set conda_libmamba_solver_version = "24.7.0"%}
44
# when mamba_version is updated here, also update MICROMAMBA_VERSION
55
# in scripts/build.sh

Miniforge3/mambaforge_deprecation.bat

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
if "%GITHUB_ACTIONS%"=="true" (
2-
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
2+
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
33
)
44
else (
5-
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
5+
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
66
)
77

8-
:REM for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%#
9-
:REM if "%_date%"=="2024-10-01" exit 1
10-
:REM if "%_date%"=="2024-10-15" exit 1
11-
:REM if "%_date%"=="2024-11-01" exit 1
12-
:REM if "%_date%"=="2024-11-10" exit 1
13-
:REM if "%_date%"=="2024-11-20" exit 1
14-
:REM if "%_date%"=="2024-11-30" exit 1
15-
:REM if "%_date%"=="2024-12-05" exit 1
16-
:REM if "%_date%"=="2024-12-10" exit 1
17-
:REM if "%_date%"=="2024-12-15" exit 1
18-
:REM if "%_date%"=="2024-12-20" exit 1
19-
:REM if "%_date%"=="2024-12-25" exit 1
20-
:REM if "%_date%"=="2024-12-30" exit 1
21-
:REM if "%_date%"=="2024-12-31" exit 1
22-
:REM if "%_date:~0,4%"=="2025" exit 1
23-
:REM
24-
:REM echo Sleeping for 30s...
25-
:REM powershell -nop -c "& {sleep 30}"
8+
for /f "delims=" %%# in ('powershell get-date -format "{yyyy-MM-dd}"') do @set _date=%%#
9+
if "%_date%"=="2024-10-01" exit 1
10+
if "%_date%"=="2024-10-15" exit 1
11+
if "%_date%"=="2024-11-01" exit 1
12+
if "%_date%"=="2024-11-10" exit 1
13+
if "%_date%"=="2024-11-20" exit 1
14+
if "%_date%"=="2024-11-30" exit 1
15+
if "%_date%"=="2024-12-05" exit 1
16+
if "%_date%"=="2024-12-10" exit 1
17+
if "%_date%"=="2024-12-15" exit 1
18+
if "%_date%"=="2024-12-20" exit 1
19+
if "%_date%"=="2024-12-25" exit 1
20+
if "%_date%"=="2024-12-30" exit 1
21+
if "%_date%"=="2024-12-31" exit 1
22+
if "%_date:~0,4%"=="2025" exit 1
23+
24+
echo Sleeping for 30s...
25+
powershell -nop -c "& {sleep 30}"

Miniforge3/mambaforge_deprecation.sh

+14-12
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ else
88
echo "We advise you switch to Miniforge at your earliest convenience."
99
echo "More details at https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/."
1010
echo "If you are unable to switch to Miniforge, you may pin your installer version to one found in "
11-
echo "https://github.com/conda-forge/miniforge/releases/tag/24.5.0-1"
11+
echo "https://github.com/conda-forge/miniforge/releases/tag/24.3.0-1"
1212
echo "or if you lack the system requirements (Linux glibc >= 2.17, or macOS + x86-64bit >= 10.13)"
1313
echo "you may pin your installer to one older version found in "
1414
echo "https://github.com/conda-forge/miniforge/releases/tag/24.3.0-0"
15-
15+
echo "This Miniforge installer will ceese to work in 2025."
16+
echo "If you require this Mambaforge installer you may pin to "
17+
echo "https://github.com/conda-forge/miniforge/releases/tag/24.7.1-0"
1618
fi
1719

18-
# case $(date +%F) in
19-
# # Brownouts
20-
# 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-*)
21-
# exit 1
22-
# ;;
23-
# *)
24-
# echo "Sleeping for 30s..."
25-
# sleep 30
26-
# ;;
27-
# esac
20+
case $(date +%F) in
21+
# Brownouts
22+
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-*)
23+
exit 1
24+
;;
25+
*)
26+
echo "Sleeping for 30s..."
27+
sleep 30
28+
;;
29+
esac

0 commit comments

Comments
 (0)