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

Sorting opam fields #3866

Merged
merged 3 commits into from
Jan 22, 2020
Merged

Sorting opam fields #3866

merged 3 commits into from
Jan 22, 2020

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Jun 12, 2019

Add sorting on opam fields, available as a function in opam-lib & as an opam show option.
This pr contains several things:
- a compare function for formulas
- a sort function for formulas
- a sort function for filtered_formulas; this one calls also OpamFilter.simplify_extended_version_formula on filters
→ on a seperate PR #3945

  • a sort opam file function:
    • fields are sorted given alphabetical order: author, tags, depends, depopts, depexts, conflicts, pin_depends, extra_files, extra_sources
    • filtered_fomulas of depends, depopts, and conflicts are sorted given alphabetical order and their filter : build < <nothing> < test < doc < post alphabetical order too

Related to ocaml-opam/opam2web#173

This PR is still a WIP. Some discussion needed on fields sorting

@rjbou rjbou added the PR: WIP Not for merge at this stage label Jun 28, 2019
@rjbou rjbou removed the PR: WIP Not for merge at this stage label Nov 15, 2019
@XVilka XVilka mentioned this pull request Dec 10, 2019
@rjbou rjbou force-pushed the sort-opam branch 2 times, most recently from 88c6239 to 3e996ef Compare January 14, 2020 18:20
@rjbou rjbou merged commit c706189 into ocaml:master Jan 22, 2020
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