Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiny fix, html is now deterministic #34

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions internal/tlcodegen/tlgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
Expand Down
Loading