Skip to content

Commit 297764f

Browse files
committed
fix(ci): create the overlay output dir before flux pull
flux pull artifact --output requires the target directory to already exist; it stats the path before any network call and aborts with "invalid output path: stat _out/mainpkgs: no such file or directory" when the dir is missing. The step deleted _out/mainpkgs with rm -rf but never recreated it, so flux failed locally on every run and the || fallback misreported the failure as "artifact not published" — leaving the current-main overlay a permanent no-op even though the artifact exists and is anonymously pullable. Add mkdir -p after the rm -rf so the directory exists before flux pull, and reword the fallback message so a genuine future pull failure is no longer mistaken for an absent artifact. Assisted-By: Claude <[email protected]> Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent 3333b32 commit 297764f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/pull-requests.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,10 @@ jobs:
359359
- name: Pull current-main packages tree
360360
run: |
361361
rm -rf _out/mainpkgs
362+
mkdir -p _out/mainpkgs
362363
flux pull artifact "oci://${REGISTRY}/cozystack-packages:main" \
363364
--output _out/mainpkgs \
364-
|| { echo "No cozystack-packages:main yet — keeping committed refs"; rm -rf _out/mainpkgs; }
365+
|| { echo "cozystack-packages:main pull failed — keeping committed refs"; rm -rf _out/mainpkgs; }
365366
env:
366367
DOCKER_CONFIG: ${{ runner.temp }}/.docker
367368
- name: Overlay current-main refs for unbuilt packages

0 commit comments

Comments
 (0)