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

Fix disappearing channel matchspecs #222

Merged
merged 4 commits into from
Jul 17, 2023
Merged

Fix disappearing channel matchspecs #222

merged 4 commits into from
Jul 17, 2023

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Jun 26, 2023

Description

Will close #221

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jun 26, 2023
spec_str = str(spec)
if "::" in spec_str:
for arg in sys.argv:
if spec_str in arg:
spec = MatchSpec(arg)
ms_from_arg = MatchSpec(arg)
Copy link
Contributor

@costrouc costrouc Jul 1, 2023

Choose a reason for hiding this comment

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

I checked this PR when running and it does fix the issue but

conda create -n test -d conda-forge::jax conda-forge::jaxlib

specs_to_add is of type List[str] so the elif isinstance(spec, MatchSpec): branch is not touched. Is this intended? If so I am wondering why you are modifying lines 114 & 115. Checked this using breakpoints.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, good catch! I think it might be the case in some tests that are passing List[MatchSpec] directly. We'll have a clearer view when #223 is merged.

@jaimergp jaimergp marked this pull request as ready for review July 17, 2023 09:52
Copy link
Member

@jezdez jezdez left a comment

Choose a reason for hiding this comment

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

Nice catch!

@jaimergp jaimergp merged commit 04a039e into main Jul 17, 2023
@jaimergp jaimergp deleted the fix-221 branch July 17, 2023 12:35
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Jul 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2024
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.

conda create -n test conda-forge::jax conda-forge::jaxlib skips jax (using libmamba solver only)
4 participants