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

Dependency resolution fails with multiple architectures #47

Open
chadaeschliman opened this issue Aug 21, 2024 · 2 comments
Open

Dependency resolution fails with multiple architectures #47

chadaeschliman opened this issue Aug 21, 2024 · 2 comments

Comments

@chadaeschliman
Copy link

I have a conda environment (specified in a yaml file) that I'm attempting to resolve for linux-64 and osx-arm64. It works fine with each individually but fails when passing both architectures to the command.

I tracked down the error to line 785 of environment_cmd.py. The deps dictionary is (currently) shared across the environments, so this line clears the required sys dependency for the linux-64 architecture when it processes the osx-arm64 architecture. I believe a simple deps = deps.copy() at the start of the loop (so each environment has a separate copy of deps) will fix the issue (it fixes it for me).

@romain-intel
Copy link
Contributor

romain-intel commented Aug 22, 2024

Excellent feedback and you are absolutely right. I will update it.

Thanks a lot.

@romain-intel
Copy link
Contributor

This may take me just a tad more time. I realized that by just doing that, we would be breaking the ability to go from one environment to another (ie: both environments should be "equivalent" but they wouldn't be given the differences in hashes). I just have to think a tiny bit more about this to fix it properly. If the fix works for you for now, great -- you just won't be able to easily know that both environments are equivalent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants