Skip to content

Commit a098636

Browse files
authored
Remove distr prefix from macos builds (#4766)
MacOS smoke test started to fail with following error: ``` /opt/homebrew/Caskroom/miniconda/base/bin/conda run -p /Users/ec2-user/runner/_work/_temp/pytorch_pkg_helpers_7018156083_smoke conda install --quiet --yes -c pytorch-nightly -c file:///Users/ec2-user/runner/_work/vision/vision/pytorch/vision/distr distr::torchvision PackagesNotFoundError: The following packages are not available from current channels: - distr::torchvision Current channels: - https://conda.anaconda.org/pytorch-nightly - file:///Users/ec2-user/runner/_work/vision/vision/pytorch/vision/distr - defaults - https://conda.anaconda.org/distr <-- Here is the error To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org/ and use the search bar at the top of the page. ``` Hence removing distr channel produces expected result. Please note: followup may be required to make sure file is actually installed from expected: `` file:///Users/ec2-user/runner/_work/vision/vision/pytorch/vision/distr `` and not ``pytorch-nightly`` or ``pytorch-test``
1 parent 084790b commit a098636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_conda_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ jobs:
187187
${CONDA_RUN_SMOKE} conda install \
188188
--quiet \
189189
--yes \
190-
-c pytorch-${CHANNEL} \
191190
-c "${CONDA_LOCAL_CHANNEL}" \
192-
distr::"${PACKAGE_NAME}"
191+
-c pytorch-${CHANNEL} \
192+
"${PACKAGE_NAME}"
193193
194194
if [[ ! -f "${{ inputs.repository }}"/${SMOKE_TEST_SCRIPT} ]]; then
195195
echo "${{ inputs.repository }}/${SMOKE_TEST_SCRIPT} not found"

0 commit comments

Comments
 (0)