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 3266604 + f2ea6d2 commit e46fcf5Copy full SHA for e46fcf5
cmd/init.go
@@ -225,7 +225,7 @@ var initCmd = &cobra.Command{
225
return
226
}
227
228
- paramsFile, err := os.OpenFile(ParametersFilePath, os.O_RDWR, 0)
+ paramsFile, err := os.OpenFile(ParametersFilePath, os.O_RDWR|os.O_TRUNC, 0)
229
if err != nil {
230
log.Printf("Error opening parameters file: %v", err.Error())
231
0 commit comments