Skip to content

Commit a6beb12

Browse files
authored
Set cacheDir in executor.Opts to fix cache (#512)
1 parent b2105c9 commit a6beb12

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/src/batch_common.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,13 @@ func batchExecute(ctx context.Context, out *output.Output, svc *service.Service,
278278
}
279279

280280
opts := executor.Opts{
281-
TempDir: flags.tempDir,
282-
Creator: workspaceCreator,
281+
CacheDir: flags.cacheDir,
283282
ClearCache: flags.clearCache,
284-
KeepLogs: flags.keepLogs,
285-
Timeout: flags.timeout,
283+
Creator: workspaceCreator,
286284
Parallelism: flags.parallelism,
285+
Timeout: flags.timeout,
286+
KeepLogs: flags.keepLogs,
287+
TempDir: flags.tempDir,
287288
}
288289

289290
p := newBatchProgressPrinter(out, *verbose, flags.parallelism)

0 commit comments

Comments
 (0)