-
Notifications
You must be signed in to change notification settings - Fork 143
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
Support micromamba (umamba) : a light weight version of mamba #850
Comments
Here is the related block https://github.com/topgrade-rs/topgrade/blob/a9f57d420519f74d05b6ed4fb6bbf1519d7233b0/src/steps/generic.rs#L435C1-L454C2 : pub fn run_umamba_update(ctx: &ExecutionContext) -> Result<()> {
let umamba = require("umamba")?;
# acquire a list of the available target environments
let output = Command::new(&umamba)
.args(["env", "list", "--json"])
.output_checked_utf8()?;
debug!("Micromamba output: {}", output.stdout);
print_separator("MicroMamba");
// loop over the target environments
for target_env in targets {
let mut command = ctx.run_type().execute(umamba);
command.args(["update", "--all", "--name", target_env ]);
if ctx.config().yes(Step::MicroMamba) {
command.arg("--yes");
}
command.status_checked()
} |
Instead of using the GitHub issues page, you could consider posting your suggestion on the Topgrade discussions page at https://github.com/topgrade-rs/topgrade/discussions/categories/ideas. The discussions section is often a better place to share ideas and get feedback from the project maintainers and community. |
This issue looks like a feature request issue |
I would not like Micromamba to update my environments blindly. I keep outdated environments for testing purposes. Conda and Mamba only update the base environment and only after checking whether it is auto-activated (i.e., they check the config option "auto_activate_base"). However, I would like Micromamba to run its "self-update" option. That only updates the Micromamba binary and the list of packages available. Here is a diff implementing such behavior: 6f932ed |
That's right.
There is an on-going PR that removes this check because it seems unnecessary: #905
I am wondering do Mamba and Conda have such an option? |
Interesting. If I still used
No, I don't think they do. |
If you think we should preserve it, welcome to leave a comment there:) |
I want to suggest a new step for micromamba
This is related to issues #395 #443 #495 #750 #829 #832 #841 which support
conda
andmamba
.micromamba update
supports a--dry-run
option.micromamba
provides a--yes
option to skip the user interaction.The
micromamba update
command optionsTopgrade should provide access to the
micromamba update
command.example:
This will update all of the packages in the environment named
env1
.The following is the output from
micromamba update --help
.More information
This tool is used by conda-forge https://conda-forge.org/
The text was updated successfully, but these errors were encountered: