This is an automated email from the ASF dual-hosted git repository.
assignuser pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new e0e740bd7a GH-34296: [C++][CI] Force appveyor builds to use
conda-forge and ignore defaults channel (#34297)
e0e740bd7a is described below
commit e0e740bd7a24de68262c0b7e47eeed62a6cbd2a0
Author: Weston Pace <[email protected]>
AuthorDate: Wed Feb 22 17:26:27 2023 -0800
GH-34296: [C++][CI] Force appveyor builds to use conda-forge and ignore
defaults channel (#34297)
For some reason (potentially related to
https://github.com/mamba-org/mamba/issues/656 or maybe just the default conda
behavior) it appears that specifying `-c conda-forge` is not sufficient as
conda will still check the defaults channel.
Lately it seems the defaults channel has introduced some incompatibility
that leads to a deadlock or hang during solve.
This PR disables defaults completely which seems to avoid the hang.
* Closes: #34296
Authored-by: Weston Pace <[email protected]>
Signed-off-by: Jacob Wujciak-Jens <[email protected]>
---
ci/appveyor-cpp-setup.bat | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ci/appveyor-cpp-setup.bat b/ci/appveyor-cpp-setup.bat
index 64f930a161..960d1d9581 100644
--- a/ci/appveyor-cpp-setup.bat
+++ b/ci/appveyor-cpp-setup.bat
@@ -63,6 +63,9 @@ if "%ARROW_BUILD_GANDIVA%" == "ON" (
)
@rem Install pre-built "toolchain" packages for faster builds
set CONDA_PACKAGES=%CONDA_PACKAGES% --file=ci\conda_env_cpp.txt
+@rem Force conda to use conda-forge
+conda config --add channels conda-forge
+conda config --remove channels defaults
@rem Arrow conda environment
mamba create -n arrow -q -y -c conda-forge ^
--file=ci\conda_env_python.txt ^