-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use callback=reset_context
in conda.plan
#13357
Conversation
Another thing I noticed was that |
Because: 1. conda.base.context.ContextStack is broken (pop/replace don't call self.apply). 2. conda.plan is the only consumer of ContextStack => we know nothing else adds to the stack => no need for it. 3. We know always use default search_path => no need for distinctions. Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Nothing seems to be breaking. Errors are due to #13360. |
callback=reset_context
in conda.plan
Dependencies of python are altered acc. to add_pip_as_python_dependency. In case that configuration value is changed at runtime (currently only observed in conda-build's tests), SubdirData._cache_ gets invalid. The offline cache on disk already considers the option, such that the changes here make runtime behavior consistent with the offline cache. refs: - conda#13357 (comment) - conda/conda-build#5083 (comment) Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Dependencies of python are altered acc. to add_pip_as_python_dependency. In case that configuration value is changed at runtime (currently only observed in conda-build's tests), SubdirData._cache_ gets invalid. The offline cache on disk already considers the option, such that the changes here make runtime behavior consistent with the offline cache. refs: - conda#13357 (comment) - conda/conda-build#5083 (comment) Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
2b308b1
to
fa75051
Compare
(I had this commit 2b308b1 in here too
to call |
Tests fail because they seem broken.
that kind of foreshadows more issues when fixing the tests... |
af2eaa9
to
1743873
Compare
Okay, the |
Dependencies of python are altered acc. to add_pip_as_python_dependency. In case that configuration value is changed at runtime (currently only observed in conda-build's tests), SubdirData._cache_ gets invalid. The offline cache on disk already considers the option, such that the changes here make runtime behavior consistent with the offline cache. refs: - conda#13357 (comment) - conda/conda-build#5083 (comment) Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
1743873
to
b1e22d7
Compare
Opened gh-13365 for the I'm adding this PR to the next milestone since it is effectively a blocker for |
And a note for other reviewers: The changes here are pretty much confined to |
I think it's time to mark |
Port of fix from conda/conda#13357 . Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Port of fix from conda/conda#13357 . Signed-off-by: Marcel Bargull <marcel.bargull@udo.edu>
Description
add_pip_as_python_dependency
(and others) ignored when run viaconda-build
conda-libmamba-solver#393KeyError
in some conda-build cases conda-libmamba-solver#386Thanks to all the research done by @mbargull:
We need to use
reset_context
instead ofreset_context_default
to prevent he latter from clearing configurations coming from.condarc
files (see conda/conda-libmamba-solver#393 for details). We also needcallback
instead ofstack_callback
, because:Checklist - did you ...
news
directory (using the template) for the next release's release notes?