Skip to content

Jsonnetfmt needs to be run multiple time to fix a file #503

Open
@graywolf-at-work

Description

@graywolf-at-work
+$ printf '{}\n//\n' >a.jsonnet
+$ cp a.jsonnet orig.jsonnet
+$ while ! jsonnetfmt --test a.jsonnet; do
+> jsonnetfmt -i a.jsonnet
+> diff -u orig.jsonnet a.jsonnet
+> done
--- orig.jsonnet        2021-01-19 23:26:35.129851360 +0100
+++ a.jsonnet   2021-01-19 23:28:04.271007497 +0100
@@ -1,2 +1,3 @@
 {}
 //
+
--- orig.jsonnet        2021-01-19 23:26:35.129851360 +0100
+++ a.jsonnet   2021-01-19 23:28:04.811014462 +0100
@@ -1,2 +1,4 @@
 {}
 //
+
+
--- orig.jsonnet        2021-01-19 23:26:35.129851360 +0100
+++ a.jsonnet   2021-01-19 23:28:05.321021040 +0100
@@ -1,2 +1,5 @@
 {}
 //
+
+
+
+$

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions