Merge "Pretty print SBox manifest files to make them easier to read" into main
This commit is contained in:
commit
169cffe526
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue