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
Add flag to enforce subdirectory == subdirectory in index.json #105
Comments
See recent incident on conda-forge: conda-forge/status#144 |
I'm thinking this check should be enabled by default with the option to disable |
Sounds reasonable to me. I think it should also emit a warning (or maybe even error?). |
Is it correct that within the last year libmamba promoted "subdir mismatch" as something to crash on, which was not previously the case? |
Not libmamba, libsolv |
Yeah, libsolv added this check at some point. I didn't ever think that it would be possible to have mixed-arch packages in the subdirs though. |
When developing |
Checklist
What is the idea?
It can cause problems when a package is built for a subdirectory but is placed into a different subdirectory (e.g. a linux-64 package copied into noarch/)
Add a strict flag to either error or ignore those packages when index.json's subdir does not match. Then a mismatched package would not show up in repodata.json.
Remember that old packages might have a platform= in index.json or nothing at all? instead of subdir.
The text was updated successfully, but these errors were encountered: