diff options
author | Earl Warren <contact@earl-warren.org> | 2023-07-02 10:41:54 +0200 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2023-08-23 16:03:12 +0200 |
commit | 331984a5b930ce1709095338065521203772fef5 (patch) | |
tree | 486eb20ec4b72a567a7fca7b1a32a57b43220731 /internal | |
parent | [FORGEJO] default labels to a single docker (diff) | |
download | forgejo-runner-331984a5b930ce1709095338065521203772fef5.tar.xz forgejo-runner-331984a5b930ce1709095338065521203772fef5.zip |
[FORGEJO] no double / in WorkDir, it would fail local actions
Diffstat (limited to 'internal')
-rw-r--r-- | internal/app/run/runner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index 483415a..477fc93 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -185,7 +185,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report. runnerConfig := &runner.Config{ // On Linux, Workdir will be like "/<parent_directory>/<owner>/<repo>" // On Windows, Workdir will be like "\<parent_directory>\<owner>\<repo>" - Workdir: filepath.FromSlash(fmt.Sprintf("/%s/%s", r.cfg.Container.WorkdirParent, preset.Repository)), + Workdir: filepath.FromSlash(filepath.Clean(fmt.Sprintf("/%s/%s", r.cfg.Container.WorkdirParent, preset.Repository))), BindWorkdir: false, ActionCacheDir: filepath.FromSlash(r.cfg.Host.WorkdirParent), |