diff --git a/go/performance/benchmarks/benchmarks.go b/go/performance/benchmarks/benchmarks.go index 828ff284ee..0d9563dcd2 100644 --- a/go/performance/benchmarks/benchmarks.go +++ b/go/performance/benchmarks/benchmarks.go @@ -199,7 +199,7 @@ func getBenchmarkingTools(fs filesys.Filesys, rows int, cols []*SeedColumn, work } func setupDEnvImport(fs filesys.Filesys, sch *SeedSchema, workingDir, tableName, pathToSchemaFile, pathToImportFile string) *env.DoltEnv { - wc, err := fs.OpenForWrite(pathToImportFile) + wc, err := fs.OpenForWrite(pathToImportFile, os.ModePerm) if err != nil { log.Fatal(err) } diff --git a/go/performance/benchmarks/results.go b/go/performance/benchmarks/results.go index c6475888c6..acf26b3fea 100644 --- a/go/performance/benchmarks/results.go +++ b/go/performance/benchmarks/results.go @@ -18,6 +18,7 @@ import ( "fmt" "io" "log" + "os" "path/filepath" "testing" "time" @@ -156,7 +157,7 @@ func serializeResults(results []result, path, tableName, format string) { now := time.Now() fs := filesys.LocalFS resultsFile := filepath.Join(path, fmt.Sprintf("benchmark_results-%04d-%02d-%02d%s", now.Year(), now.Month(), now.Day(), format)) - wc, err := fs.OpenForWrite(resultsFile) + wc, err := fs.OpenForWrite(resultsFile, os.ModePerm) if err != nil { log.Fatal(err) }