Skip to content

Commit c54a147

Browse files
committed
ci: support current anaconda-client CLI
1 parent 3af6af9 commit c54a147

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/unilabos-conda-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,16 @@ jobs:
116116
echo "CONDA_NO_PLUGINS=true" >> "$GITHUB_ENV"
117117
echo "PYTHONUTF8=1" >> "$GITHUB_ENV"
118118
echo "PYTHONIOENCODING=utf-8" >> "$GITHUB_ENV"
119+
# anaconda-client 1.13+ 的顶层 CLI 不再支持 --version,上传也需使用兼容入口。
120+
echo "ANACONDA_CLIENT_FORCE_STANDALONE=1" >> "$GITHUB_ENV"
119121
120122
- name: Show environment info
121123
if: steps.should_build.outputs.should_build == 'true'
122124
run: |
123125
conda info
124126
conda list -n build-env | grep -E "(rattler-build|anaconda-client)"
125127
conda run -n build-env rattler-build --version
126-
conda run -n build-env anaconda --version
128+
conda run -n build-env python -m binstar_client.scripts.cli --version
127129
echo "Platform: ${{ matrix.platform }}"
128130
echo "OS: ${{ matrix.os }}"
129131
echo "Build full package: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.build_full == 'true' }}"

0 commit comments

Comments
 (0)