Skip to content

portable lock directories should pick the same version for cross-platform packages #13647

@Alizter

Description

@Alizter

Currently portable lock directories cannot always pick, without further direction, the same package version across platforms.

This is because at the time of writing we are doing multiple separate solves. These will be merged into a single solve once #13645 is addressed.

As discussed in:

We should constrain the single solve so that packages that appear in multiple platforms share the same version.

@art-w has an idea on how to handle this in a single SAT problem.

Importantly we still want to allow some packages to only appear for a subset of platforms, however they should still share the same version. Take for example unix-only-package not being picked on Windows.

If users would like differing versions of the same package across multiple platforms, they are welcome to use a second (or more) lock file with the separate solution for the separate platforms.

We should also consider if we want to keep the version number in the directory structure of the lock directory. This might need some further discussion as I've heard from some users that they find it useful, but ultimately it is redundant information since the version can be found in the .pkg file. We should consider what git diff will observe.

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