Skip to content

Delete internal/worker#1957

Closed
thozza wants to merge 3 commits intoosbuild:mainfrom
thozza:no-clienterror
Closed

Delete internal/worker#1957
thozza wants to merge 3 commits intoosbuild:mainfrom
thozza:no-clienterror

Conversation

@thozza
Copy link
Member

@thozza thozza commented Oct 16, 2025

While working on something else, I noticed that we still keep the internal/worker in this repository, which is a leftover from the osbuild-composer split.

To enable the removal, refactor the remotefile package implementation and move it to the pkg/ directory, since it has nothing to do with customizations. The remotefile resolver is not used anywhere, AFAIK, so I could also delete it, but I think we may actually use it for some functionality we discussed in the past (i.e., embedding custom files referenced by a remote URL in

func (p *OS) fileRefs() ([]string, error) {
).

@thozza thozza requested a review from a team as a code owner October 16, 2025 19:58
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@achilleas-k
Copy link
Member

Some error messages need to be updated in tests.

@thozza
Copy link
Member Author

thozza commented Oct 21, 2025

Some error messages need to be updated in tests.

The issue is actually that the order in which resolver resolves the entries is not stable.

@achilleas-k
Copy link
Member

Some error messages need to be updated in tests.

The issue is actually that the order in which resolver resolves the entries is not stable.

Oh! Problem.
Can we put the error messages in an array and test with ElementsMatch() against an array of expected ones?

@thozza thozza marked this pull request as draft November 11, 2025 10:57
@achilleas-k
Copy link
Member

Rebasing on f0ffe5b.

The remotefile package provides a content resolver implementation, not a
customization. Move it to the pkg/ directory, where also other content
resolver packages live.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Rework the remotefile resolver to not embed the resolution error in the
Spec definition, but instead return error from the resolver `Finish()`
method. This is consistent with i.e. the container resolver.

Additionally, don't use clienterrors package for errors.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This is a leftover from osbuild-composer split, while the authoritative
copy still lives in osbuild-composer repository. The package is not
needed in the images library.
@supakeen supakeen removed their request for review December 17, 2025 08:55
@github-actions
Copy link

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 17, 2026
@thozza thozza removed the Stale label Jan 19, 2026
@lzap
Copy link
Contributor

lzap commented Feb 6, 2026

For the record, I am picking this PR up since I need this for osbuild/osbuild#2326

@lzap
Copy link
Contributor

lzap commented Feb 6, 2026

I am taking your commits and pulling them into my own PR, closing this one if you don't mind.

@lzap lzap closed this Feb 6, 2026
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.

3 participants