-
Notifications
You must be signed in to change notification settings - Fork 289
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
Support CLI integration of ostree-rs-ext #2480
Comments
I agree this would be nice to have. Bunch of questions to push this forward:
|
I like the git (and cargo) approach of "if git/cargo $foo is not recognized, look for That said, it's not clear to me that ostree needs this level of external extensibility, versus hardcoding support for ostree-ext.
We should definitely support people using ostree-ext independently of rpm-ostree. But...the thing is, dealing with Rust and vendoring and crate dependencies etc., it seems by far simpler to me to have rpm-ostree vendor ostree-ext instead of shipping it independently, at least in Fedora. This is what I was getting at with the above:
|
Yes, I'd be happy with that lookup logic too (assuming it's sanely feasible). Also, from an out-of-band chat, we figured out we are fine with making |
Perhaps one simple way to approach this is to "reserve" names on the ostree-c side. For example, take the current set of sub-verbs of ostree-rs-ext:
We'd add stubs into The rpm-ostree multicall stuff could actually then just take over WDYT? |
Oh sorry, you said basically the same thing in coreos/rpm-ostree#3281 (comment) I think |
Yes, this is exactly my understanding of the plan.
We can put in place this allowlist if we prefer, but strictly speaking we don't need to.
If we land coreos/rpm-ostree#3281 and place an hardlink |
Basically what I think we should support is something like:
/usr/lib/ostree/ostree-ext
which if detected,
/usr/bin/ostree
automatically gains support for e.g.ostree ex-container
mapping toostree-ext container
.(Right now for rpm-ostree we are vendoring the library, so most likely we'd make it so
/usr/lib/ostree/ostree-ext
was a hardlink to/usr/bin/rpm-ostree
, and then auto-detect viaargv[0]
that we should behave asostree-ext
)In general this path leads to a more seamless UX.
The text was updated successfully, but these errors were encountered: