Skip to content

Print names of unclean files in jsonnetfmt --test and --in-place#863

Merged
johnbartholomew merged 2 commits intogoogle:masterfrom
johnbartholomew:print-fmt-names
Mar 8, 2026
Merged

Print names of unclean files in jsonnetfmt --test and --in-place#863
johnbartholomew merged 2 commits intogoogle:masterfrom
johnbartholomew:print-fmt-names

Conversation

@johnbartholomew
Copy link
Collaborator

Go port of google/jsonnet#1303

Also updates cpp-jsonnet submodule to get the updates to test_cmd (which is test coverage for jsonnetfmt CLI)

It should print names of changed files (for --in-place mode) or files which are not correctly formatted (for --test mode). Inputs which come from stdin (input name - on the command line), or which have no name (using the -e flag) should not cause any name to be printed regardless of whether they are cleanly formatted or not, but the jsonnetfmt --test exit code should still reflect whether the input was cleanly formatted.

@johnbartholomew johnbartholomew merged commit 7b3fbdd into google:master Mar 8, 2026
9 checks passed
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