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

install from lockfile doesn't respect pkgs_dirs #2187

Closed
alchzh opened this issue Dec 23, 2022 · 5 comments · Fixed by #2265
Closed

install from lockfile doesn't respect pkgs_dirs #2187

alchzh opened this issue Dec 23, 2022 · 5 comments · Fixed by #2265
Labels
type::bug Something isn't working

Comments

@alchzh
Copy link

alchzh commented Dec 23, 2022

a command like micromamba install --name explicit --file conda-lock.yml ignores configured pkgs_dirs due to 7ea1ab9 and

fs::u8path pkgs_dirs(Context::instance().root_prefix / "pkgs");

I would like to use lockfiles in tandem with a shared package cache on my server environment for large environment updates.

Is there a reason for the current behavior?

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Feb 4, 2023

Could it be that this is stopping our offline installs at conda-forge? xref: conda-forge/miniforge#419

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Feb 4, 2023

Is the fix that that the line should look more like:

MultiPackageCache package_caches(ctx.pkgs_dirs);

@alchzh
Copy link
Author

alchzh commented Feb 4, 2023

I'm guessing there was a decision made with good reason to find the pkgs for manually instead of like that. @wolfv ?

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Feb 4, 2023

I think it is causing us to also create a random folder in the user's directory: conda-forge/miniforge#420

@alchzh
Copy link
Author

alchzh commented Feb 10, 2023

Thank you for getting this in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants