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

Modified yaml_fwrite to preserve file insertion order #611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leoechevarria
Copy link

Added sort_keys=False to yaml.dump call in yaml_fwrite to preserve the order of insertion of the files to be written in the .core when writing a generator (for instance for packages to be included and compiled before other sources). Supported from PyYAML >= 5.1.

@imphil
Copy link
Collaborator

imphil commented Mar 7, 2023

Thanks for your contribution! Can you add a test to show the problem you're fixing, and to ensure that it actually stays fixed?

And please add a version constraint on pyyaml if you depend on a feature that's only available from a certain version on (https://github.com/olofk/fusesoc/blob/main/setup.py#L56).

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.

2 participants