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

mamba install -c local #434

Open
SylvainCorlay opened this issue Jul 26, 2020 · 2 comments
Open

mamba install -c local #434

SylvainCorlay opened this issue Jul 26, 2020 · 2 comments
Labels
type::discussion type::feature-request New feature proposal type::question Further information is requested where::libsolv

Comments

@SylvainCorlay
Copy link
Member

With conda, -c local will force the installation from the local channel, while with mamba, it will not install anything if there is already a version from a remote channel.

@wolfv
Copy link
Member

wolfv commented Jul 27, 2020

do you know if conda forces installation only for the local channel or if this is generally the behavior? I think it's generally like that and I am not sure wether I like that because IMO install should be a no-op if the package is already installed. I think with update or --force this should definitely happen though.

@adriendelsalle adriendelsalle added type::discussion type::feature-request New feature proposal type::question Further information is requested labels Jun 4, 2021
@wolfv wolfv assigned wolfv and unassigned wolfv Jun 30, 2021
@wolfv wolfv mentioned this issue Jun 30, 2021
17 tasks
@s22chan
Copy link
Contributor

s22chan commented Dec 1, 2022

conda install -c local doesn't force: it just adds local as the highest priority channel.
eg:

remote_ver=2, local_ver=1 -> no install
remote_ver=2, local_ver=2 -> install
remote_ver=2, local_ver=3 -> install

conda install local::pkg_name would specifically require the package to be from local. This doesn't work with mamba:

error    libmamba Selected channel specific (or force-reinstall) job, but package is not available from channel. Solve job will fail.

As of now, I'm not sure if mamba has any way of updating an environment with a locally built dev package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::discussion type::feature-request New feature proposal type::question Further information is requested where::libsolv
Projects
None yet
Development

No branches or pull requests

4 participants