Skip to content

micromamba run should accept a trailing -- as conda does #4216

@Thibaulltt

Description

@Thibaulltt

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

No other issues I could find are similar.

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

The docs for the conda run command mention it accepts a trailing -- separator (just like most git commands) to differentiate between the arguments to the run command and the command to execute in the specified environment. Here is the small example they show, copied over from the documentation:

conda run -n my-python-env -- python -v
conda run -v -n my-python-env -- tar -tvf file.tar

mamba info / micromamba info

libmamba version : 2.5.0
     micromamba version : 2.5.0
           curl version : libcurl/8.18.0 OpenSSL/3.5.4 zlib/1.3.1 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.67.0 mit-krb5/1.21.3
     libarchive version : libarchive 3.8.5 zlib/1.3.1 bz2lib/1.0.8 libzstd/1.5.7 libb2/bundled
       envs directories : /home/thib/.local/micromamba/envs
          package cache : /home/thib/.local/micromamba/pkgs
                          /home/thib/.mamba/pkgs
            environment : base
           env location : /home/thib/.local/micromamba
      user config files : /home/thib/.mambarc
 populated config files :
       virtual packages : __unix=0=0
                          __linux=6.19.9=0
                          __glibc=2.42=0
                          __archspec=1=x86_64_v3
                          __cuda=13.0=0
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /home/thib/.local/micromamba
               platform : linux-64

Logs

$ # The environment 'my-python-env' exists and it _not_ activated.
$ micromamba run -n my-python-env -- bash
The following argument was not expected: bash
Run with --help for more information.

environment.yml

~/.condarc

# No configuration.

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