Skip to content

manifest --resolve normalizes west-commands: "sometimes" #961

Description

@marc-hb

Depending on various conditions, manifest-resolve sometimes outputs special characters exactly as entered like this:

    west-commands:
    - mf_subdir/scripts/\winsubA\\\west-commands-from-subdir-windows.yml

but in other situations it normalizes paths like this instead:

    west-commands:
    - mf_subdir/scripts/winsubA/west-commands-from-subdir-windows.yml

At first I thought it would behave one way on Windows and the other way on Unix. It does, but it is unfortunately worse. I just discovered while extending test coverage (#962) for the very recent ca6bb64 fix for #725 that the two different behaviors can be observed on Windows alone. I think that's really not OK.

This was already discussed in:

... and in probably a few other places in #920 but I didn't think it would be inconsistent even on the same OS.

PS: in a private chat @pdgendt also suspects that mf_subdir might be "silently" added. Should it be?

cc:

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions