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

Parse subdirs in CLI match specs #2799

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

jonashaag
Copy link
Collaborator

#2798 without the interface changes.

Fixes #2792

For example, the channel in install conda-forge/noarch::tzdata would previously be parsed as conda-forge/noarch while it should be parsed as conda-forge with noarch subdir.

platform
);
if (!platform.empty())
{
platforms.push_back(std::move(platform));
value = cleaned_url;
Copy link
Collaborator Author

@jonashaag jonashaag Aug 29, 2023

Choose a reason for hiding this comment

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

I changed this because I think we always want the rstrip() from split_platform. Or we should make that rstrip() conditional on if we found a platform.

Copy link
Member

Choose a reason for hiding this comment

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

I think all usecases should be consistent, so let's rstrip all the time.

Fixes mamba-org#2792

For example, the channel in `install conda-forge/noarch::tzdata` would
previously be parsed as `conda-forge/noarch` while it should be parsed
as `conda-forge` with `noarch` subdir.
platform
);
if (!platform.empty())
{
platforms.push_back(std::move(platform));
value = cleaned_url;
Copy link
Member

Choose a reason for hiding this comment

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

I think all usecases should be consistent, so let's rstrip all the time.

@JohanMabille JohanMabille merged commit c51ce62 into mamba-org:main Aug 31, 2023
23 checks passed
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

Successfully merging this pull request may close these issues.

Subdir in match spec does not take multichannel into account
2 participants