We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 833dc0f + 80d4d0e commit 4507935Copy full SHA for 4507935
cmd/kubebuilder/util/util.go
@@ -84,7 +84,7 @@ func WriteString(path, value string) {
84
create(path)
85
}
86
87
- f, err := os.OpenFile(path, os.O_WRONLY, 0)
+ f, err := os.OpenFile(path, os.O_WRONLY|os.O_TRUNC, 0)
88
if err != nil {
89
log.Fatalf("Failed to create %s: %v", path, err)
90
0 commit comments