hack/ci/ci.sh has an environment dependency (in all repos)
Issue Description
The
limactl copy "$REPO_DIR" $LIMA_VM_NAME:/var/tmp/…
line in hack/ci/ci.sh should include -r. This does work in CI, but breaks in (some?) local VMs. Guessing, perhaps depending on whether scp or rsync is used.
Apples also to Buildah and Skopeo.
@timcoding1988 PTAL at least to confirm (low priority, perhaps delegate).
/usr/bin/scp: local "$CHECKOUT/hack/ci/../.." is not a regular file
/usr/bin/scp: failed to upload file $CHECKOUT/hack/ci/../.. to /var/tmp/buildah
Hi @mtrmac, I'd like to work on this one. Looking at the limactl copy "$REPO_DIR" $LIMA_VM_NAME:/var/tmp/… line in hack/ci/ci.sh, I'll add the -r flag so it recurses correctly when copying the repo directory — that should resolve the scp: local ... is not a regular file error you're seeing locally.
I'll open a PR shortly. Happy to also flag the same fix for Buildah and Skopeo if that's useful, since you mentioned it applies there too.
Hi @mtrmac, @mwemmz — noticed this was still open with no linked PR after ~15h, so I went ahead and put up #29434 with the -r fix on both limactl copy calls in hack/ci/ci.sh. Apologies for the potential overlap @mwemmz — happy to close mine if you'd already started; otherwise reviews welcome. Also happy to mirror the same change to Buildah and Skopeo since @mtrmac mentioned it applies there too.
@mtrmac – I've taken a look at this. The -r fix was merged via #29434, but since this issue was reopened, I wanted to check:
Is the failure still happening in your local environment after pulling the latest main?
If so, could you share more details about your setup (OS, limactl version, whether it's using scp or rsync)?
I'm happy to help test or carry the fix over to Buildah/Skopeo if that's still needed. Just let me know what would be most useful.
I originally intended this issue to track fixing it in all repos, not just Podman. Alternatively filing separate issues in those projects would be fine, but perhaps fixing everything at once would be easier.
A friendly reminder that this issue had no activity for 30 days.