Skip to content

[native_assets_builder] Report all dependencies (or none and mandate to always be invoked) #1770

Closed
@mkustermann

Description

@mkustermann

The dart builder returns BuildResult.dependencies and LinkResult.dependencies. Those dependencies are the ones reported by the hooks themselves - which are dependencies that should cause re-run of hooks if changed.

Though it seems that the source files of the hooks isn't reported to the bundling tool at all today.

=> The purpose of the dependencies is to tell a bundling tool when it needs to re-run the build/link steps.
=> The bundling tool needs to know all dependencies, including hook sources, dart sdk version, ... - anything that if changed should re-trigger of hooks

Alternatively one could say bundling tools always have to re-run the dart build and it may detect it's a NOP quickly and return.

=> If we want that, its questionable whether we should report dependencies at all to the bundling tool.
=> Then a bundling tool probably wants to know an additional piece of information, namely whether calling the dart build resulted in a NOP build or it actually changed the assets.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions