Skip to content

feat: re-lock on download failure#247

Open
dsteeley wants to merge 4 commits into
mainfrom
feat/re-lock-on-download-failure
Open

feat: re-lock on download failure#247
dsteeley wants to merge 4 commits into
mainfrom
feat/re-lock-on-download-failure

Conversation

@dsteeley
Copy link
Copy Markdown
Collaborator

When running rpmoci (specifically on ubi9 rpm repos) there is a class of error where the lockfile is valid but the rpms referenced in the lockfile are no longer present in the rpm repos specified.
This PR attempts to address the above issue by regenerating the lockfile when running an unlocked build with a valid lockfile.

The downside of this is that lockfile regeneration will occur when an unlocked valid lockfile build fails for any reason.

dsteeley added 4 commits May 12, 2026 08:58
When pinned packages are removed from a rolling repo (e.g. UBI9 only
retains the latest package version), rpmoci build fails at download
time with "Package could no longer be found in repositories". The
error was correct but gave no guidance on how to resolve it.

Add context to the lockfile.build() call so failures include a
suggestion to run `rpmoci update` to regenerate the lock file.

Fixes: DEVX-544
…fails. Intended to resolve issues where a compatible lockfile is invalid due to upstream OS packages being removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant