Mamba fails to create environment because the `--yes` flag is not supplied

Mamba fails to create environment because the --yes flag is not supplied.
Adding conda.createOptions = '--yes' does not help either.

  Failed to create Conda environment
    command: mamba env create --prefix ./work/conda/env-961b98c89213eaa1-e6f0bafd6827065b938c2602e5e8feef --file ./envs/seqkit_env.yaml
    status : 143
...
      ─────────────────────────────────────────────────────────────────────────────
      
      
      Confirm changes: [Y/n]



 -- Check '.nextflow.log' file for details
1 Like

My team is dealing with the exact same error.
The solution is to downgrade back to <=mamba=1.5.11
Mamba 2.0 upgrade changed the interactive module and nextflow 24 is still assuming the same connection to mamba as conda. they are mostly the same. (but might not be the case for mamba>=2.0)
Here is another reference from another team