Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container: make container.NewResolver() return a pointer #433

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Feb 8, 2024

Most go packages return pointers to structs when using NewFoo(). But NewResolver() does not and AFAICT there is no deep reason for this. I would prefer to return a pointer here, I got tripped up by this in
osbuild/bootc-image-builder#139 (comment)

This will be the first part to fix osbuild/bootc-image-builder#139 (comment)

I checked the various uses of container.NewResolver() and this does not even seem to require any code change in the current consumers.

Most go packages return pointers to structs when using `NewFoo()`.
But `NewResolver()` does not and AFAICT there is no deep reason
for this. I would prefer to return a pointer here, I got tripped
up by this in
osbuild/bootc-image-builder#139 (comment)
@achilleas-k
Copy link
Member

Ready to merge if you want to mark it ready.

@mvo5 mvo5 marked this pull request as ready for review February 8, 2024 15:55
@achilleas-k achilleas-k added this pull request to the merge queue Feb 9, 2024
Merged via the queue into osbuild:main with commit 8f5a6dc Feb 9, 2024
12 checks passed
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.

2 participants