Skip to content

Commit

Permalink
Merge pull request #2107 from jaimergp/micromamba-cache-windows
Browse files Browse the repository at this point in the history
Do not move micromamba cache to `%MINIFORGE_HOME%`
  • Loading branch information
beckermr authored Oct 30, 2024
2 parents a47f077 + 25cb91a commit 7b51d71
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conda_smithy/templates/run_win_build.bat.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ certutil -urlcache -split -f "%MICROMAMBA_URL%" "%MICROMAMBA_EXE%"
if !errorlevel! neq 0 exit /b !errorlevel!

echo Creating environment
{#- TODO: Set CONDA_PKGS_DIRS again when #2101 is fixed #}
{#- set "CONDA_PKGS_DIRS=%MINIFORGE_HOME%\pkgs" #}
call "%MICROMAMBA_EXE%" create --yes --root-prefix "%MAMBA_ROOT_PREFIX%" --prefix "%MINIFORGE_HOME%" ^
--channel conda-forge ^
pip {{ conda_build_tool_deps }} {{ " ".join(remote_ci_setup) }}
if !errorlevel! neq 0 exit /b !errorlevel!
echo Moving pkgs cache from %MAMBA_ROOT_PREFIX% to %MINIFORGE_HOME%
move /Y "%MAMBA_ROOT_PREFIX%\pkgs" "%MINIFORGE_HOME%"
if !errorlevel! neq 0 exit /b !errorlevel!
{#- set "CONDA_PKGS_DIRS=" #}
echo Removing %MAMBA_ROOT_PREFIX%
del /S /Q "%MAMBA_ROOT_PREFIX%"
del /S /Q "%MICROMAMBA_TMPDIR%"
Expand Down
23 changes: 23 additions & 0 deletions news/2107-micromamba-cache-windows.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Do not move ``micromamba`` cache to ``conda``'s location to avoid "permission denied" errors on Windows. (#2102 via #2107)

**Security:**

* <news item>

0 comments on commit 7b51d71

Please sign in to comment.