-
Notifications
You must be signed in to change notification settings - Fork 428
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
empty host section is discarded, host and build envs merged #2887
Comments
I think #2882 should fix this. Can you try it? |
Same result with latest
|
OK, thanks. I'll take another look. |
Sorry, this is not going to be fixed. Empty keys are stripped from recipes. I can't keep an empty host section. If you need to specify that the build and host envs should not be merged, and you're not using the new {{compiler()}} functions, you should use the (currently undocumented) |
Hm... Not the answer I was hoping for. But regardless of that decision, I'll have to ask you to reopen the issue (or open another one) since
Given that its value is being rendered as |
It is parsed correctly, it's a bug elsewhere. The build section is still being treated as the host section (this is why you're getting the run_exports). I think you might need to use
The problem is that your use case runs head-long into the use case of maintaining backwards compatibility with old recipes that have not yet split build and host. I might be able to add more checks for merge_build_host, but I'd also really like to understand why this edge case is necessary. |
It offers consistency in the build process (e.g., always having those two envs active, weak I really appreciate that you added that change in gh-2896! |
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
Actual Behavior
host
andbuild
environments are merged ifrequirements/host
is present but empty, i.e., an emptylist
orNone
.Expected Behavior
build
andhost
should not be merged for all cases werehost
is present, as described in the docs:Steps to Reproduce
Expected behavior: No
run: ['bzip2 >=1.0.6,<2.0a0']
in both cases.Output of conda info
The text was updated successfully, but these errors were encountered: