Skip to content

fix(flatpak): handle solo artifact layout in nightly repo assembly - #1983

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

fix(flatpak): handle solo artifact layout in nightly repo assembly#1983
eleboucher merged 1 commit into
devfrom
fix/flatpak-nightly-solo-artifact

Conversation

@eleboucher

@eleboucher eleboucher commented Aug 28, 2026

Copy link
Copy Markdown
Member

No description provided.

@eleboucher
eleboucher merged commit 243908e into dev Aug 28, 2026
11 of 12 checks passed
@eleboucher
eleboucher deleted the fix/flatpak-nightly-solo-artifact branch August 28, 2026 11:56
eleboucher added a commit that referenced this pull request Aug 28, 2026
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).
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