Skip to content

Don't expand final list arguments of functions#254

Closed
infinisil wants to merge 5 commits intomasterfrom
last-list-args
Closed

Don't expand final list arguments of functions#254
infinisil wants to merge 5 commits intomasterfrom
last-list-args

Conversation

@infinisil
Copy link
Member

Applies #233 to last arguments too

Best review commit by commit


This work is sponsored by Antithesis

@github-actions
Copy link

github-actions bot commented Sep 17, 2024

Nixpkgs diff

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2024-09-17/52300/1

@piegamesde
Copy link
Member

piegamesde commented Sep 18, 2024

This produces a couple of weird outputs, like

    (mkRenamedOptionModule [
      "services"
      "xserver"
      "displayManager"
      "sddm"
      "enable"
    ] [ "services" "displayManager" "sddm" "enable" ])

Not sure how to easily solve that though

Edit: okay so it turns out the solution is to stop caring about mkRenamedOptionModule and replace it with an alternative API which doesn't require these weird attrpath lists in the first place.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/formatting-team-meeting-2024-10-01/53763/1

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/how-to-use-nixfmt-for-nixpkgs/56590/2

@infinisil
Copy link
Member Author

Superseded by #257

@infinisil infinisil closed this Nov 26, 2024
@infinisil infinisil deleted the last-list-args branch November 26, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants