Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 169cffe5 authored by Paul Duffin's avatar Paul Duffin Committed by Gerrit Code Review
Browse files

Merge "Pretty print SBox manifest files to make them easier to read" into main

parents d9e4b248 4a3a0a54
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -629,8 +629,9 @@ func (r *RuleBuilder) build(name string, desc string, ninjaEscapeCommandString b
				name, r.sboxManifestPath.String(), r.outDir.String())
		}

		// Create a rule to write the manifest as textproto.
		pbText, err := prototext.Marshal(&manifest)
		// Create a rule to write the manifest as textproto. Pretty print it by indenting and
		// splitting across multiple lines.
		pbText, err := prototext.MarshalOptions{Indent: " "}.Marshal(&manifest)
		if err != nil {
			ReportPathErrorf(r.ctx, "sbox manifest failed to marshal: %q", err)
		}