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

feat: Sort override build systems more strictly #1325

Conversation

l0b0
Copy link
Contributor

@l0b0 l0b0 commented Sep 25, 2023

Closes #1320.

jq does not yet support sorting by locale, so there are some slightly awkward sorts like "hatch-vcs" before "hatchling".

FYI @moonshxne @cpcloud

Improves consistency and readability.

Helps with nix-community#1320.
Easier to read, and can be piped directly into `patch -p0`.
…field

Improves consistency. Most entries are already sorted this way.

Improves readability, since entries are now sorted in increasing
chronological order.

Helps with nix-community#1320.
Makes the filter much easier to read, now that it's getting more complex.
Doesn't change build-systems.json, because this is already the case.

Helps with nix-community#1320.
@l0b0 l0b0 force-pushed the feat/sort-override-build-systems-more-strictly branch from 6dfe669 to 5ac36da Compare September 26, 2023 00:36
@l0b0 l0b0 marked this pull request as ready for review September 26, 2023 00:39
After sorting by the `from` and `until` versions.

Helps with nix-community#1320.
@l0b0 l0b0 force-pushed the feat/sort-override-build-systems-more-strictly branch from 5ac36da to ae35a2e Compare September 26, 2023 00:40
String entries apply to _all_ versions, so it makes sense for them to be
first in the build systems lists.
@l0b0 l0b0 force-pushed the feat/sort-override-build-systems-more-strictly branch from bc06a64 to d5ea9cd Compare September 26, 2023 01:15
@cpcloud cpcloud added this pull request to the merge queue Oct 5, 2023
Merged via the queue into nix-community:master with commit 8420c5b Oct 5, 2023
116 checks passed
@l0b0 l0b0 deleted the feat/sort-override-build-systems-more-strictly branch October 5, 2023 20:06
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.

Sort overrides/build-systems.json more strictly
2 participants