Skip to content

dune install doesn't process relative paths correctly #12241

@Alizter

Description

@Alizter

Various arguments that take any path can run into issues when we pass something like --prefix ../bar. When we interpret paths, our library sees that the relative path is outside the workspace and rejects it. The current workaround is for the user to make the path absolute by passing $PWD/../bar instead.

One solution would be to make all such paths absolute, however this does change the intention of the user. A better option would be to have something in the path API that allows us to treat relative paths outside of the workspace.

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