-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
micromamba2: base_url and channel are mangled in micromamba list --json
#3480
Comments
Thanks so much @Hind-M!!! |
Hey @Hind-M, I am still having trouble with this as it relates to conda-lock. I have noticed that there is different behavior of the output depending on whether or not If {
"base_url": "https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.5-h516909a_1.tar.bz2",
"build_number": 1,
"build_string": "h516909a_1",
"channel": "conda-forge/linux-64/xz-5.2.5-h516909a_1.tar.bz2",
"dist_name": "xz-5.2.5-h516909a_1",
"name": "xz",
"platform": "linux-64",
"version": "5.2.5"
}, If {
"base_url": "https://conda.anaconda.org/conda-forge",
"build_number": 0,
"build_string": "h166bdaf_0",
"channel": "conda-forge",
"dist_name": "xz-5.2.6-h166bdaf_0",
"name": "xz",
"platform": "linux-64",
"version": "5.2.6"
}, I don't know under which conditions the |
Sorry, I'm struggling to come up with a MWE using the |
Hello @Hind-M, here is a MWE via Docker illustrating the differences in output both with and without the file extension in the repodata FROM mambaorg/micromamba:2.0.2
RUN micromamba install -c conda-forge -y xz=5.2.6
RUN micromamba list --json > with-extension.json
RUN sed -i 's/"fn": "xz-5.2.6-h166bdaf_0.tar.bz2",/"fn": "xz-5.2.6-h166bdaf_0",/' /opt/conda/conda-meta/xz-5.2.6-h166bdaf_0.json
RUN micromamba list --json > without-extension.json docker build -t mamba-mwe-3480 .
docker run --rm -it mamba-mwe-3480 diff with-extension.json without-extension.json 53c53
< "base_url": "https://conda.anaconda.org/conda-forge",
---
> "base_url": "https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2",
56c56
< "channel": "conda-forge",
---
> "channel": "conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2", |
Hey, apologies for the noise. My recent messages were erroneous, so please disregard. (I tried to determine the conditions under which the extension should be omitted from |
Note the difference below in
base_url
andchannel
. This leads to a failure in the conda-lock CI conda/conda-lock#713Run
A typical entry with micromamba 1.5.10
A typical entry with micromamba 2.0.0
I think the output from 1.5.10 of
base_url
andchannel
is correct, while the output from 2.0.0 is incorrect.The text was updated successfully, but these errors were encountered: