Skip to content

fix(flatpak): restore refs/remotes dropped by zip artifacts - #1984

Merged
eleboucher merged 1 commit into
devfrom
fix/flatpak-nightly-refs-remotes
Aug 28, 2026
Merged

fix(flatpak): restore refs/remotes dropped by zip artifacts#1984
eleboucher merged 1 commit into
devfrom
fix/flatpak-nightly-refs-remotes

Conversation

@eleboucher

Copy link
Copy Markdown
Member

Follow-up to #1983. The nightly Flatpak publish now fails one step later:

Pulling arch-repos/
error: Listing refs: opendir(refs/remotes): No such file or directory

Cause: workflow artifacts are zip-based and drop empty directories. The repo exported by flatpak-builder has an empty refs/remotes/, which vanishes in the upload/download round-trip. ostree pull-local lists the source repo's refs from both refs/heads and refs/remotes, so it fails on the pruned directory.

Fix: mkdir -p "$src/refs/remotes" before each pull-local.

Verified locally against the actual flatpak-nightly-repo-x86_64 artifact from run 33168925183: reproduced the exact error, then confirmed the pull succeeds with the directory restored (380 metadata + 324 content objects imported; all three refs present in the assembled repo).

@github-actions

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

Status Preview URL Commit Alias Updated (UTC)
✅ Deployment successful! https://pr-1984-sable.raspy-dream-bb1d.workers.dev 7f58787 pr-1984 Fri, 28 Aug 2026 12:17:39 GMT

@eleboucher
eleboucher force-pushed the fix/flatpak-nightly-refs-remotes branch from 7f58787 to 0f609f1 Compare August 28, 2026 12:28
@eleboucher
eleboucher merged commit 7bfc618 into dev Aug 28, 2026
11 checks passed
@eleboucher
eleboucher deleted the fix/flatpak-nightly-refs-remotes branch August 28, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant