Skip to content

env export --from-history fails with a JSON parse error on history entries with comma-range specs (regression in 2.9.0) #4374

Description

@mathbunnyru

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

comma

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I didn't try

Describe your issue

$ mamba --version
2.8.1
$ mamba install --yes 'ripgrep>=14,<20'
$ grep 'update specs' /opt/conda/conda-meta/history | tail -1
# update specs: ["ripgrep[version=\">=14,<20\"]"]
$ mamba env export --no-build --json --from-history >/dev/null; echo $?
0
$ mamba install --yes 'mamba=2.9.0'
$ mamba env export --no-build --json --from-history >/dev/null; echo $?
1

mamba info / micromamba info

reproduced on linux-aarch64; our CI hit the same failure on linux-64

       libmamba version : 2.9.0
          mamba version : 2.9.0
           curl version : libcurl/8.21.0 OpenSSL/3.6.3 zlib/1.3.2 zstd/1.5.7 libpsl/0.23.0 libssh2/1.11.1 nghttp2/1.68.1 mit-krb5/1.22.2
     libarchive version : libarchive 3.8.9 zlib/1.3.2 liblzma/5.8.3 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.7 liblzo2/2.10 openssl/3.5.7 libb2/bundled
       envs directories : /opt/conda/envs
          package cache : /opt/conda/pkgs
                          /home/jovyan/.mamba/pkgs
            environment : base
           env location : /opt/conda
      user config files : /home/jovyan/.mambarc
 populated config files : /opt/conda/.condarc
       virtual packages : __unix=0=0
                          __linux=6.12.76=0
                          __glibc=2.39=0
                          __archspec=1=aarch64
               channels : https://conda.anaconda.org/conda-forge/linux-aarch64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /opt/conda
               platform : linux-aarch64

Logs

{
    "log_history": [
        {
            "level": "critical",
            "location": "/home/conda/feedstock_root/build_artifacts/bld/rattler-build_mamba_1786125681/work/micromamba/src/main.cpp:235:9 int main(int, char**)",
            "message": "[json.exception.parse_error.101] parse error at line 6, column 23: syntax error while parsing array - invalid literal; last read: '\"ripgrep[version=\">'; expected ']'",
            "source": "libmamba"
        }
    ]
}

environment.yml

~/.condarc

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