Skip to content
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

brew's micromamba provides mamba as well as #200954

Closed
4 tasks done
BastianZim opened this issue Dec 12, 2024 · 3 comments
Closed
4 tasks done

brew's micromamba provides mamba as well as #200954

BastianZim opened this issue Dec 12, 2024 · 3 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@BastianZim
Copy link
Contributor

brew gist-logs <formula> link OR brew config AND brew doctor output

Error: No logs.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is:issue and found no duplicates.

What were you trying to do (and why)?

Use micromamba to create anything

What happened (include all command output)?

mamba is also installed and micromamba a link of mamba.

Ref: https://formulae.brew.sh/formula/micromamba

I opened an issue for mamba here as well which has more info: mamba-org/mamba#3687

The gist ist:

I only installed micromamba with brew install micromamba and got mamba as well:

bastianzimmermann@Bastians-MacBook ~ % which mamba
/opt/homebrew/bin/mamba
bastianzimmermann@Bastians-MacBook ~ % which micromamba 
micromamba () {
	__mamba_wrap "$@"
}
bastianzimmermann@Bastians-MacBook ~ % type mamba
mamba is /opt/homebrew/bin/mamba

This might also be related to spyder-ide/spyder#23246 as I didn't get this before.

What did you expect to happen?

Only get micromamba and no mamba

Step-by-step reproduction instructions (by running brew commands)

1. brew install micromamba
@BastianZim BastianZim added the bug Reproducible Homebrew/homebrew-core bug label Dec 12, 2024
@carlocab
Copy link
Member

The micromamba executable is just a symlink to mamba to avoid breaking users who call it as micromamba:

# Upstream chooses names based on static or dynamic linking,
# but as of 2.0 they provide identical interfaces.
bin.install_symlink "mamba" => "micromamba"

Since v2 they're essentially the same thing. Is there a reason you want only an executable named micromamba and not one named mamba too?

@BastianZim
Copy link
Contributor Author

Ahh I did not know that. No, I don't have a preference for micromamba vs mamba, but based on the docs, they are two different things, from my understanding? I generally liked micromamba as it is faster than mamba.

Also, the installation is "weird" in the sense that it creates a mamba file under my user and not a .mamba file as the docs state.

So I guess it's best to just use mamba?

@carlocab
Copy link
Member

Historically they were different, but these days they're the same thing now (modulo some implementation details that you shouldn't really notice).

Also, the installation is "weird" in the sense that it creates a mamba file under my user and not a .mamba file as the docs state.

That might be from the caveats:

==> Caveats
Please run the following to setup your shell:
  /opt/homebrew/opt/micromamba/bin/mamba shell init --shell <your-shell> --root-prefix ~/mamba

If you had done

/opt/homebrew/opt/micromamba/bin/mamba shell init --shell <your-shell> --root-prefix ~/.mamba

I suspect you'll get the .mamba that you were expecting.

So I guess it's best to just use mamba?

You can use either; it doesn't really matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

2 participants