From 019493176bdc34d733435a63609afa84d78d05ab Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Wed, 22 Mar 2023 14:49:11 +0800 Subject: [PATCH] improve workdir --- runtime/task.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/task.go b/runtime/task.go index e854d67..86cde60 100644 --- a/runtime/task.go +++ b/runtime/task.go @@ -212,7 +212,9 @@ func (t *Task) Run(ctx context.Context, task *runnerv1.Task, runnerName, runnerV input := t.Input config := &runner.Config{ - Workdir: "." + string(filepath.Separator), + // On Linux, Workdir will be like "//" + // On Windows, Workdir will be like "\\" + Workdir: filepath.FromSlash(string(filepath.Separator) + preset.Repository), BindWorkdir: false, ReuseContainers: false, ForcePull: input.forcePull,