-
Notifications
You must be signed in to change notification settings - Fork 427
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
Sort output metadata prior to writing to meta.yaml #2149
Conversation
0e9ea4c
to
2d95b45
Compare
Added comments above metadata sorting block Fixed typo in sorting comment
2d95b45
to
ebee064
Compare
Fingers crossed that those two fields are the only ones we need to omit. Merging for now, will revisit if issues crop up. |
@mandeep, @msarahan, sometimes the values here are lists, e.g. multiple sources and this code falls over: meta.yaml:
|
This reverts commit ebee064. See my comment on conda#2149
Would it be okay to move the AttributeError exception catch earlier? Maybe start the |
Maybe this behavior should be documented somewhere. That might be helpful in case of errors for some exotic/peculiar use-cases. Say someone has a weird package which uses test:
imports:
- weird_module_that_installs_some_other_module_on_first_import
- some_other_module_installed_by_the_weird_one which wouldn't work when sorted. Of course that example is very constructed/artificial (and nothing anyone should aim for). The point is, if not documented, the sorting might be unexpected behavior from the user's stand point.
: if |
Hi there, thank you for your contribution! This pull request has been automatically locked because it has not had recent activity after being closed. Please open a new issue or pull request if needed. Thanks! |
In relation to #2140:
The field values in the metadata are sorted alphabetically prior to outputting the meta.yaml file in the info/recipe directory. The build/script and test/commands values are omitted.