Fix failed to create container if the runner works in root dir #67

Merged
Zettat123 merged 2 commits from bugfix/issue-#56 into main 2023-03-23 01:41:23 +00:00
+3 -1
View File
@@ -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 "/<owner>/<repo>"
// On Windows, Workdir will be like "\<owner>\<repo>"
Workdir: filepath.FromSlash(string(filepath.Separator) + preset.Repository),
BindWorkdir: false,
ReuseContainers: false,
ForcePull: input.forcePull,