Skip to content

Commit 7c800eb

Browse files
authored
fix(ci): use an absolute local channel for conda pkg-install (#186)
The package.yml verification passed `local-channel: conda.recipe` (a relative path) to conda-actions/pkg-install; micromamba resolves a bare name as a remote channel, 404-ing on https://conda.anaconda.org/conda.recipe/noarch/repodata.json and failing the conda-build job. This was latent because package.yml only runs on qa/main/tags (never on next), so it first surfaced on the next->qa promotion. Stage the built noarch package into a clean absolute channel dir (/tmp/local-channel/noarch) and point pkg-install there, matching the working CGC pattern. Assisted-With: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 54e1646 commit 7c800eb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/package.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ jobs:
2727
- name: build conda package
2828
run: pixi run -e package build-conda
2929

30+
# micromamba reads a LOCAL channel only from an absolute path; a bare
31+
# "conda.recipe" is resolved as a *remote* channel (404 on anaconda.org).
32+
# Stage the built noarch package into a clean absolute channel dir.
33+
- name: Stage built package into a local channel
34+
run: |
35+
mkdir -p /tmp/local-channel/noarch
36+
cp conda.recipe/noarch/hyperctui*.tar.bz2 /tmp/local-channel/noarch/
37+
3038
# conda-verify is archived (no modern-Python builds); verification is
3139
# the org-standard pkg-install (micromamba env from the local channel)
3240
# + pkg-verify (import check) pair
@@ -35,7 +43,7 @@ jobs:
3543
uses: neutrons/conda-actions/pkg-install@bba9ca89d48d9ae846db9650cc63fde736340b3d # v2
3644
with:
3745
package-name: hyperctui
38-
local-channel: conda.recipe
46+
local-channel: /tmp/local-channel
3947

4048
- name: Verify conda package
4149
uses: neutrons/conda-actions/pkg-verify@bba9ca89d48d9ae846db9650cc63fde736340b3d # v2

0 commit comments

Comments
 (0)