Skip to content

West doesn't find extension commands when run in a workspace without additional modules #772

@kieranwlc

Description

@kieranwlc

Describe the bug

When running west within a workspace that only contains zephyr and no additional modules, west doesn't find the extension commands in /scripts/west_commands.yml. E.g. 'zephyr-export.'

To Reproduce

  1. Initialise a workspace with a manifest that just contains zephyr and no additional modules:
    E.g.
    app/west.yml
manifest:
  remotes:
    - name: zephyrproject-rtos
      url-base: https://github.com/zephyrproject-rtos
  projects:
    - name: zephyr
      remote: zephyrproject-rtos
      revision: v4.0.0
west init -l app
west update
  1. Run west or one of the west extension commands
    west help
    west zephyr-export

Expected behavior

West should be able to detect and run the extension commands in /zephyr

Impact

Annoyance

Logs and console output

west: unknown command "zephyr-export"; workspace {workspace_path} does not define this extension command -- try "west help" and "west -vv status"

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: just Zephyr
  • v4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions