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

Need links are not sorted in needs.json #1371

Open
arwedus opened this issue Dec 17, 2024 · 0 comments
Open

Need links are not sorted in needs.json #1371

arwedus opened this issue Dec 17, 2024 · 0 comments

Comments

@arwedus
Copy link
Contributor

arwedus commented Dec 17, 2024

Hi @chrisjsewell ,

in our project, we need a reproducible build, i.e. the needs builder must generate the same output if fed with the same input. That's why we have set reproducible_needs_json = True.
We noticed, however, that lists of linked needs (e.g. our "implements" or "derives" options) are not alphabetically sorted. We hoped that the order in which the links are added is stable, but noted that the order of the linked need ID entries changes depending on whether we add an external needs source (with needs_external_needs). However, the change has no influence on the elements contained in the list of IDs, it just changes the order.

Is this a known "feature" (i.e. the needs json builder does not sort the link list to save run-time) or is this a regression? I actually thought that your argument for reproducible build output was that all lists are sorted anyways, which I've shown you (see internal chat) that it's not the case with sphinx-needs 4.1.

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

No branches or pull requests

1 participant