Skip to content

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Nov 25, 2022

Fixes #57.

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Nov 25, 2022
@jaimergp
Copy link
Contributor Author

Python 3.7 tests will fail because conda-forge won't build for Python 3.7 anymore, and libmamba 1.0 is not available in that Python version. This will pass once we have libmamba 1.0 on defaults and we can switch back to that for packaging.

Otherwise we can also drop 3.7 from the matrix, but I think this is still supported by Anaconda so... let's wait :)

channel_name = "defaults"

# only check the loaded index if it contains the channel conda should come from
# otherwise ignore
index_channels = {getattr(chn, "canonical_name", chn) for chn in index._channels}
if channel_name in index_channels:
if channel_name not in index_channels:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently we had this logic reversed 😨

This now will indeed check where there's a conda update if the solution includes conda, and we happened to have the channel conda came from in the loaded channels already (to prevent additional fetching).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yikes, that seems bad, will take a closer look at what that means..

@@ -757,13 +757,13 @@ def _notify_conda_outdated(
return

channel_name = current_conda_prefix_rec.channel.canonical_name
if channel_name == UNKNOWN_CHANNEL:
if channel_name in (UNKNOWN_CHANNEL, "@", "<develop>", "pypi"):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a query issue when we are checking whether a conda update is available, but its source channel is "develop" because it was installed in dev mode. I added other commonly used fake channels just in case.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this @ here stumble over authentication passed in?

@jezdez jezdez force-pushed the libmamba-1.0-compat branch from c54701d to 19c1d35 Compare November 26, 2022 16:54
@jezdez jezdez marked this pull request as ready for review November 28, 2022 10:39
@jezdez
Copy link
Member

jezdez commented Nov 28, 2022

@jaimergp we're down to one error: tests/test_channels.py::test_http_server_auth_basic_email Not sure what's causing this, but it fails when the user has a @ in it?

@jezdez
Copy link
Member

jezdez commented Nov 29, 2022

pre-commit.ci autofix

@jezdez jezdez merged commit f65ca2d into main Nov 30, 2022
@jezdez jezdez deleted the libmamba-1.0-compat branch November 30, 2022 18:46
@jaimergp jaimergp mentioned this pull request Jan 19, 2023
2 tasks
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Dec 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Update to use libmamba 1.0
3 participants