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

Make the libostree dependency optional #290

Merged
merged 2 commits into from
Jun 26, 2017

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jun 19, 2017

This adds a containers_image_ostree_stub build tag to allow making the libostree dependency optional. See the individual commit messages for more details.

@williamh , could you please try applying this PR to the vendored copy of containers/image in skopeo, and then building skopeo with make binary-local BUILDTAGS=containers_image_ostree_stub ?

@giuseppe FYI

This is useful primarily so that we can use build tags to remove transports
from transports/alltransports, while giving users more hints about what
to do instead of a bland “unknown transport”.

Tests can also use this instead of their own mocks.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
…pendency optional

If this tag is defined, transports/alltransports registers a stub
instead of the real package.

Also updates README, adding the ostree-devel dependency to the dnf
command and restructuring it to have a list of build tags.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@giuseppe
Copy link
Member

@mtrmac thanks, LGTM

@runcom
Copy link
Member

runcom commented Jun 22, 2017

LGTM

Approved with PullApprove

@williamh
Copy link

Can you give me a description of how to mangle the commit so it will apply to skopeo? I am having difficulty with that, but it may be because I'm doing it incorrectly.

@mtrmac
Copy link
Collaborator Author

mtrmac commented Jun 26, 2017

👍

@williamh Thanks for testing this, and I’m sorry for not getting back to you with something easier to test.

Approved with PullApprove

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.

None yet

4 participants