-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix mamba version #6560
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
base: main
Are you sure you want to change the base?
Fix mamba version #6560
Conversation
|
Thank you @lldelisle This probably needs knitting and testing |
bernt-matthias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is correct as it is, or?
| > `miniconda_prefix` | {% raw %}`"{{ galaxy_tool_dependency_dir }}/_conda"`{% endraw %} | We will manually install conda as well. Normally Galaxy will attempt to auto-install this, but since we will set up a production-ready instance with multiple handlers, there is the chance that they can become deadlocked. | ||
| > `miniconda_version` | `25.3` | Install a specific miniconda version, the latest one at the time of writing that was tested and working. | ||
| > `miniconda_distribution` | `miniforge` | Install a specific distribution of conda, see https://github.com/galaxyproject/ansible-miniconda for alternatives. This determines the default value for the `miniconda_executable` (`conda` for `miniforge`) | ||
| > `miniconda_version` | `2.4.0` | Install a specific miniconda version, the latest one at the time of writing that was tested and working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default conda distribution (confusingly called miniconda_distribution) seems to be miniforge. miniconda_version defaults to latest. Recent version numbers seem to be 25.x: https://github.com/conda-forge/miniforge/releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I agree that the default is miniforge.
- The associated executable is "mamba": https://github.com/galaxyproject/ansible-miniconda/blob/0b2ec2da7d143717b1f21baf15263adca1cc3fb7/defaults/main.yml#L161-L162
- For the version, I tried on my instance
miniconda_version: 25.3and I got an error.
What the role is doing is:
https://github.com/galaxyproject/ansible-miniconda/blob/0b2ec2da7d143717b1f21baf15263adca1cc3fb7/tasks/update.yml#L5-L8
And the last version of mamba is 2.4.0
| > `miniconda_version` | `25.3` | Install a specific miniconda version, the latest one at the time of writing that was tested and working. | ||
| > `miniconda_distribution` | `miniforge` | Install a specific distribution of conda, see https://github.com/galaxyproject/ansible-miniconda for alternatives. This determines the default value for the `miniconda_executable` (`conda` for `miniforge`) | ||
| > `miniconda_version` | `2.4.0` | Install a specific miniconda version, the latest one at the time of writing that was tested and working. | ||
| > `miniconda_distribution` | `miniforge` | Install a specific distribution of conda, see https://github.com/galaxyproject/ansible-miniconda for alternatives. This determines the default value for the `miniconda_executable` (`mamba` for `miniforge`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can note that miniforge is the default anyway.
FYI: to my knowledge, nowadays there are only minor differences between conda and mamba anyway and according to @bgruening mamba is dead...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, mamba is dead, please use conda.
(The new cool kid in town is pixi, but I don't think we want to switch, we wait until conda has taken all the pixi advantages ;))
Following #6518 by @bernt-matthias
I fixed the version to be compatible with mamba.
And changed something in the help text. @bernt-matthias I reverted one of you change, can you check if I am correct?