Skip to content

Allow group lists (build-depends, default-extensions, etc.) by comments and/or empty lines #63

@ruifengx

Description

@ruifengx

Currently, lists are sorted in alphabetical order. This has the following surprising (for me, at least) consequences:

  • array is sorted before base
  • all comments in the list gets moved to the very beginning
  • empty lines are removed

Therefore, I do not see a way to maintain my dependencies in groups, where each group contributes to a certain functionality of my package. I propose to change the behaviour to treat comments and/or empty lines as group separators, and only sort within the groups.

As a minor point, I do think base should always appear first in the dependency list, so maybe it can be considered as a special case when sorting the dependencies. However, I understand not everyone will agree with this ordering, and I am all satisfied if at least I can use grouping to force the ordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions