Skip to content

Always allow running extension commands from the manifest project #916

@pdgendt

Description

@pdgendt

When constructing the Manifest project, it fails with a ManifestImportFailed if projects aren't cloned.
This consequently has the effect that we can't run any West extension commands, not even from the manifest project itself.

The issue was first reported here: zephyrproject-rtos/zephyr#103832

Example using the example application:

$ west init -m https://github.com/zephyrproject-rtos/example-application --mr main my-workspace
$ cd my-workspace

Try running the example-west-command extension without west update:

$ west example-west-command "test"
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-q] [-V] <command> ...
west: unknown command "example-west-command"; workspace /tmp/my-workspace does not define this extension command -- try "west help" and "west -vv status"

After west update:

$ west example-west-command "test"
--optional is None
required is test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Partial importsIncomplete or changing imports are much more complicated than you thinkenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions