Skip to content

Question: Is it possible to convert from a explicit lockfile to a unified lockfile? #821

@matthewfeickert

Description

@matthewfeickert

Is it possible to convert from a explicit lockfile to a unified lockfile? I believe the answer to this is "no", but given the response to Issue #178 I wasn't sure if there was some undocumented way to do so (given that conversion is not mentioned in the docs at all).

This question has similar motivations to Issue #780, given that with Pixi you can use the

pixi workspace export conda-explicit-spec

CLI to export the environments as conda explicit spec files, which seem to be(?) the exact same format as conda-lock explicit lock files, other than sorting differences(?).

While the semantics of

conda create --name <name> --file <conda spec file/conda-lock explicit lock file>

are fine, there are certain workflows that are expecting a format of either an environment.yml environment definition file or a conda-lock.yml unified lockfile (example: repo2docker, c.f. jupyterhub/repo2docker#1339) and so I wasn't sure if there was any conversion story at this point.

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