Skip to content

Commit

Permalink
parser: truncate keywords.go when re-creating it (#49634)
Browse files Browse the repository at this point in the history
ref #48801
  • Loading branch information
dveeden authored Dec 21, 2023
1 parent 7f9559c commit f1ff450
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/parser/generate_keyword/genkeyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func main() {
if err != nil {
log.Fatalf("Failed to create keywords.go: %s", err)
}
err = keywordsFile.Truncate(0)
if err != nil {
log.Fatalf("Failed to create keywords.go: %s", err)
}
_, err = keywordsFile.WriteString(fileStart)
if err != nil {
log.Fatalf("Failed to write fileStart to keywords.go: %s", err)
Expand Down

0 comments on commit f1ff450

Please sign in to comment.