-
Notifications
You must be signed in to change notification settings - Fork 260
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
Suggestion: Share AppSource
and ResolvedAppSource
in some form
#2073
Comments
I wouldn't want to see these in |
Yeah that makes sense. I am fine with either solutions as long as they are shareable in some form because we can't depend on Maybe we can create a new crate like |
AppSource
and ResolvedAppSource
from cli to spin_app
crateAppSource
and ResolvedAppSource
in some form
My feelings about that are very mixed. On the one hand, yes, it could be a powerful enabler of consistent behaviour and experience across different Spin runtime hosts (for hosts that want to opt into Spin CLI-like experiences, of course). On the other hand, it likely ends up linking to everything in the world, meaning that innocent helper tools that just want to resolve a Let's have a look and see if any existing crates feel like a good home for these types. Otherwise, I'd suggest creating a tiny new crate for them, with cli-lib as a longer term idea. Thoughts? |
For the time being, I think it would be great to add them to the loader crate. I can do some work here. |
There isn't very much code in |
I was hoping to refactor this section of the code out: https://github.com/deislabs/containerd-wasm-shims/blob/main/containerd-shim-spin/src/engine.rs#L266-L294 |
|
Close as this is not needed anymore. |
As a maintainer of the spin shim, I found these two structs particularly useful for running spin application either from the local filesystem or from oci, but we can't directly take a dependency on the
spin-cli
crate due tobuild.rs
. In order to share more logic between theup
command and the spinEngine
implementation in the containerd-shim, I'd suggest to move these two structs tospin_app
crate that we depend on. Thoughts?See: deislabs/containerd-wasm-shims#164
The text was updated successfully, but these errors were encountered: