Skip to content

Commit

Permalink
apacheGH-34296: [C++][CI] Force appveyor builds to use conda-forge an…
Browse files Browse the repository at this point in the history
…d ignore defaults channel (apache#34297)

For some reason (potentially related to mamba-org/mamba#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: apache#34296

Authored-by: Weston Pace <[email protected]>
Signed-off-by: Jacob Wujciak-Jens <[email protected]>
  • Loading branch information
westonpace authored Feb 23, 2023
1 parent 7f58c1a commit e0e740b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/appveyor-cpp-setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 ^
Expand Down

0 comments on commit e0e740b

Please sign in to comment.