Skip to content

Improve UX around portable lockdirs #11868

@gridbugs

Description

@gridbugs

Using this issue to collect cases of UX confusion around portable lockdirs.

When solving dependencies dune prints all packages in the solution, which may include multiple different versions of the same package

For example:

- sexp_pretty.v0.15.1
- sexp_pretty.v0.17.0
- sexplib.v0.15.1
- sexplib.v0.17.0
- sexplib0.v0.15.1
- sexplib0.v0.17.0
- spawn.v0.17.0
- splittable_random.v0.15.0
- splittable_random.v0.17.0
- stdio.v0.15.0
- stdio.v0.17.0
- stdlib-shims.0.3.0
- system-mingw.1
- textutils.v0.15.0
- textutils.v0.17.0
- textutils_kernel.v0.15.0

Only one version of each package will be built on any given platform, but different platforms may require different versions of the same package. One possibility for making this less confusing would be to annotate packages in the output of dune pkg lock with the condition under which they will be chosen if they aren't chosen on all platforms.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions