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

remove direct reference on c/image/storage #782

Merged
merged 2 commits into from
Dec 9, 2019

Conversation

vrothberg
Copy link
Member

Remove a direct reference on c/image/v5/storage which breaks the build
when using the containers_image_storage_stub. The reference is only
used to get the storage tranport string, which is now hard-coded; this
is fine as the transport will not change for backwards compat.

Fixes: #771
Signed-off-by: Valentin Rothberg rothberg@redhat.com

Remove a direct reference on c/image/v5/storage which breaks the build
when using the `containers_image_storage_stub`.  The reference is only
used to get the storage tranport string, which is now hard-coded; this
is fine as the transport will not change for backwards compat.

Fixes: containers#771
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

This works (feel free to merge).

Another alternative to consider would be to gate this code behind the containers_image_storage_stub build tag instead — that would be cleaner in using a Go-visible value reference instead of a magic constant, but less clean in hard-coding c/image build tags in a different project. Purely on principle, it seems a bit better to me, OTOH it’s notably more work for a rare case.

@vrothberg vrothberg merged commit b0da085 into containers:master Dec 9, 2019
@vrothberg vrothberg deleted the fix-771 branch December 9, 2019 15:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with building within a container
2 participants