Skip to content

Commit

Permalink
ensure fileblob does not create temp files in OS's temp directory (re…
Browse files Browse the repository at this point in the history
…spects config instead)

google/go-cloud#3294
  • Loading branch information
ashiqursuperfly committed Dec 30, 2024
1 parent aca8a0f commit 1d4dcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prune/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
dirPath := fmt.Sprintf("file://%s/%s", pruneConfig.GetExportPath(), pruneConfig.GetRemoteFilePrefix())
objectName := fmt.Sprintf("local_%s_%s.jsonl", pruneConfig.GetExportNodeName(), now)
log.Info().Msgf("Local archive path: %s, object name: %s", dirPath, objectName)
fileBucket, err := blob.OpenBucket(context.Background(), dirPath)
fileBucket, err := blob.OpenBucket(context.Background(), dirPath+"?no_temp_dir=1")
if err != nil {
return nil, fmt.Errorf("failed to open local archive file: %w", err)
}
Expand Down

0 comments on commit 1d4dcae

Please sign in to comment.