From 0403095c5b4744cbbcc4b1c2653d36dfa9fac714 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 25 May 2026 01:37:12 +0800 Subject: [PATCH] fix conda plugin timing in windows workflows Set CONDA_NO_PLUGINS only after mamba installs anaconda-client so setup-miniconda can initialize normally while later conda commands avoid the anaconda-auth plugin crash. --- .github/workflows/multi-platform-build.yml | 3 +-- .github/workflows/unilabos-conda-build.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml index 0fcdd904..17ed346b 100644 --- a/.github/workflows/multi-platform-build.yml +++ b/.github/workflows/multi-platform-build.yml @@ -74,8 +74,6 @@ jobs: env_file: unilabos-win64.yaml runs-on: ${{ matrix.os }} - env: - CONDA_NO_PLUGINS: "true" defaults: run: @@ -122,6 +120,7 @@ jobs: else mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y fi + echo "CONDA_NO_PLUGINS=true" >> "$GITHUB_ENV" - name: Show environment info if: steps.should_build.outputs.should_build == 'true' diff --git a/.github/workflows/unilabos-conda-build.yml b/.github/workflows/unilabos-conda-build.yml index 389c888d..40ec9c63 100644 --- a/.github/workflows/unilabos-conda-build.yml +++ b/.github/workflows/unilabos-conda-build.yml @@ -67,8 +67,6 @@ jobs: platform: win-64 runs-on: ${{ matrix.os }} - env: - CONDA_NO_PLUGINS: "true" defaults: run: @@ -115,6 +113,7 @@ jobs: else mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y fi + echo "CONDA_NO_PLUGINS=true" >> "$GITHUB_ENV" - name: Show environment info if: steps.should_build.outputs.should_build == 'true'