Open matthewfeickert opened 9 months ago
That would be pretty awesome. Want to write a PR?
Want to write a PR?
I'm generally not opposed to it, and I would probably just poke at what micromamba
does, but realistically I woudn't be able to start contributing anything for at least a month given the amount of backlog I have for my work. So I would welcome another contributor to beat me to it.
Checklist
What is the idea?
Hi. It would be a nice feature to be able to give a URL to a lock file for
conda-lock install
's lock file positional argumentas can be done with
micromamba create
's--file
argument.At the moment
conda-lock install
explicitly looks for a local file withpathlib.Path
https://github.com/conda/conda-lock/blob/83b18d5cc05b8a04ab0a4ca4b136fba7144457eb/conda_lock/conda_lock.py#L1443-L1463
Why is this needed?
It would be in general nice to be able to have similar syntacic features to the
conda
/mamba
/micromamba
create
command. To give an explicit example, thiscreate
command with a URL to a valid conda-lock file is validbut to do the same action with
conda-lock install
requires downloading it locally firstThis is very much a convienence feature, but it would be nice to have.
What should happen?
The user experience would be that the lock file positional argument in the
conda-lock install
CLIwould accept either a valid URL or a valid local path. So both of the following would be valid
URL
local path (current approach)
Additional Context
No response