Skip to content

Commit

Permalink
preprocessor: don't attempt to format .data files
Browse files Browse the repository at this point in the history
This establishes .data as the filename extension for arbitrary data
files that the preprocessor should neither attempt to format, nor worry
about not being able to format.

Preprocessor-No-Write-Cache: true
Signed-off-by: Jonathan Matthews <[email protected]>
Change-Id: Icad31ddcf46ceda30069afab0765004e4ce42e05
Dispatch-Trailer: {"type":"trybot","CL":1204403,"patchset":3,"ref":"refs/changes/03/1204403/3","targetBranch":"master"}
  • Loading branch information
jpluscplusm authored and cueckoo committed Nov 26, 2024
1 parent 0fd4d08 commit a1ce6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/preprocessor/cmd/txtar_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (t *txtarRunContext) formatFiles() error {
case "proto":
// TODO: add support for proto formatting, after working out how to make
// this tooling generally available in the base docker image.
case "txt", "csv", "md", "java", "xml":
case "txt", "csv", "md", "java", "xml", "data":
// do nothing, simply avoid logging
default:
t.logf("%v: skipping formatting of file %q; unknown extension %q", t, a.Basename, a.Ext)
Expand Down

0 comments on commit a1ce6b9

Please sign in to comment.