From 83d056ac60228db5a948fd41ec708768d67550f6 Mon Sep 17 00:00:00 2001 From: Grigory Buteyko Date: Mon, 24 Jun 2024 19:31:30 +0300 Subject: [PATCH] tiny fix, html is now deterministic --- internal/tlcodegen/tlgen.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/tlcodegen/tlgen.go b/internal/tlcodegen/tlgen.go index 2b31d3b8..d575bd17 100644 --- a/internal/tlcodegen/tlgen.go +++ b/internal/tlcodegen/tlgen.go @@ -667,7 +667,6 @@ func (gen *Gen2) WriteToDir(outdir string) error { return fmt.Errorf("outdir %q not empty and has no %q marker file, please clean manually", outdir, markerFile) } delete(relativeFiles, markerFile) // special treatment, never delete it - delete(relativeFiles, TlJSONHTML) // not deterministic, always write notTouched := 0 written := 0 deleted := 0 @@ -688,9 +687,6 @@ func (gen *Gen2) WriteToDir(outdir string) error { continue } } - if filepathName != TlJSONHTML { // not deterministic, do not write marker if json help changed - written++ - } if err := os.WriteFile(f, []byte(code), 0644); err != nil { return fmt.Errorf("error writing file %q: %w", f, err) }