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

Handling dependencies #43

Closed
radu-matei opened this issue Feb 7, 2022 · 1 comment
Closed

Handling dependencies #43

radu-matei opened this issue Feb 7, 2022 · 1 comment
Labels
enhancement New feature or request P1

Comments

@radu-matei
Copy link
Member

spin.toml allows defining a list of dependencies that the main component requires in order to be instantiated:

    [component.dependencies]
        cache    = { type = "host" }
        markdown = { type = "component", reference = "github/octo-markdown/1.0.0" }

However, the behavior of how this section should be used is not currently implemented (or specified).

Proposal: at startup, there should be a step that links the entrypoint module using the components specified in this section, and generates a "linked" component that can be directly instantiated by the execution context (engine).

This section could be potentially generated from Cargo.toml in the case of Rust (the format and necessary information is the same).

@radu-matei radu-matei added enhancement New feature or request discussion labels Feb 7, 2022
@radu-matei radu-matei added this to the v0.1.0 milestone Feb 7, 2022
@radu-matei radu-matei added the P1 label Feb 7, 2022
@radu-matei radu-matei modified the milestones: v0.1.0, v0.2.0 Mar 23, 2022
@radu-matei radu-matei removed this from the v0.2.0 milestone Apr 13, 2022
@radu-matei
Copy link
Member Author

While this is still something we want to do, we don't currently have a clear way of achieving it.
Additionally, spin.toml no longer has component.dependencies, so this issue is also out of date.

Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
Status: Done
Development

No branches or pull requests

1 participant