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.
1 parent e4f95e9 commit 80d4d0eCopy full SHA for 80d4d0e
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