Skip to content

Lock for local dependency uses absolute path #13878

@shunueda

Description

@shunueda

Related: #13877

Expected Behavior

in dune-project:

(pin
 (url ../foo)
 (package (name foo)))

locking (dune pkg lock) this should produce:

(source
 (fetch
  (url ../foo)))

Actual Behavior

Instead it uses an absolute path:

(source
 (fetch
  (url
   file:///Users/...<absolute path>.../foo)))

This makes the lock not portable.

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