Skip to content

statix: pass list settings as repeated flags instead of space-joined string#715

Open
JarvisCraft wants to merge 1 commit into
cachix:masterfrom
JarvisCraft:statix-args
Open

statix: pass list settings as repeated flags instead of space-joined string#715
JarvisCraft wants to merge 1 commit into
cachix:masterfrom
JarvisCraft:statix-args

Conversation

@JarvisCraft

Copy link
Copy Markdown

This fixes the behaviour of statix hook which, due to the change of the upstream package, now uses --key value1 --key value2 instead of --key value1 value2 (see NixOS/nixpkgs#516044 for details).

Disclaimer: I am the maintainer of statix in nixpkgs.

This was assisted by OpenCode v1.15.7 as part of personal experiments with it.

…string

Previously, all list values in settings were joined into a single
space-separated string via concatStringsSep, producing e.g.
`--ignore "pattern1 pattern2"`. Now each element is passed as a
separate flag, matching the expected CLI interface.

Assisted-by: OpenCode 1.15.7
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.

1 participant