Skip to content

[native_assets_cli] Dependencies should be per asset #1208

Closed as not planned
Closed as not planned
@dcharkes

Description

@dcharkes

Currently, the dependencies is a list of dependencies for all assets together. (This was modeled after the Rust build.rs.) But in the context of hot-reload/hot-restart we might want to only rebuild some assets (#1207). So then we'd need to know the dependencies per asset.

Some open questions:

  1. What if multiple assets are produced by the same list of dependencies? Should we try to deduplicate such list of dependencies?
  2. We've been considering making assetId optional. E.g. an assetId would only be needed for things referenced from Dart code. And not for JARs for example. But we'll likely need some way to uniquely identify an asset.

Version skew:

  • Older build.dart newer SDK: Deps added to the general config could be interpreted as deps of all assets.
  • Newer build.dart older SDK: Output all deps combined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurespackage:hooks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions