Skip to content

Should locked apps omit triggerless components? #3241

@tschneidereit

Description

@tschneidereit

When using a locally-developed component as a dependency for another component, it can be very useful to declare both components in spin.toml: that way, spin {build, watch} will ensure that both are (re-)built, instead of having to manually build the dependency. That alternative would not really work for spin watch to begin with, I think.

The downside of this approach is that any component declared in the manifest will be included in the locked app, increasing the size of deployments accordingly.

AFAICT, these components are guaranteed to be dead weight: anything not associated with a trigger has no way to be invoked after deployment, after all.

I propose that we change the application loader to filter out any components that aren't used by a trigger instead, so they don't show up in deployments.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Investigating / Open For Comment

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions