Skip to content

[native assets] Add command-line argument for native assets yaml #2483

Description

@dcharkes

Context:

Currently, package:test checks for a native_assets.yaml next to the package_config.json when compiling the tests to a kernel file to embed the native assets yaml into the kernel file.

With pub workspaces, the package_config.json is no longer in the root package, rather in some parent directory.

The native_assets.yaml is in the .dart_tool/ directory of the root package.

I see two options:

  • Add a command-line argument that takes the path to the native_assets.yaml to bin/test.dart.
  • Add a command-line argument that takes the path to the package root to bin/test.dart. (This might be useful for other things possibly?)

Any opinions @natebosch @jakemac53?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions