-
Notifications
You must be signed in to change notification settings - Fork 147
Description
When manifest isn't in the root of a module, then custom west-commands don't resolve when imported from another Zephyr workspace.
Example: https://github.com/zmkfirmware/zmk
The manifest file is located at /app/west.yml. The manifest adds custom commands from /app/scripts/west-commands.yml:
# ZMK manifest
manifest:
# ...
self:
west-commands: scripts/west-commands.ymlWhen zmk is the topdir of the workspace, both the path to west-commands.yml and the paths to any script defined therein are interpreted relative to /app.
However, when zmk is imported from another Zephyr workspaces as follows, the paths won't resolve correctly:
# Main manifest of Zephyr workspace
manifest:
projects:
- name: zmk
# ...
import: app/west.ymlIn this case, both the west-commands from the imported ZMK manifest as well as the paths to any script defined therein are interpreted as relative to /zmk (rather than /zmk/app), resulting in none of the commands being found.
Note that overwriting west-commands from the topdir manifest with west-commands: app/scripts/west-commands.yml resolves the first problem of /zmk/app/scripts/west-commands.yml being found, but still interprets the paths to any script therein relative to /zmk.