From f71f2778f0e75e3e28a81f8f726c64f27b7fffa3 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Tue, 21 Jun 2022 23:23:49 +0200 Subject: [PATCH] fix: checkout container path should always use `/` (#1226) Container.CopyDir is no longer working with `\` as destpath. --- pkg/runner/step_action_remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runner/step_action_remote.go b/pkg/runner/step_action_remote.go index aec46c9..b0f23c1 100644 --- a/pkg/runner/step_action_remote.go +++ b/pkg/runner/step_action_remote.go @@ -123,7 +123,7 @@ func (sar *stepActionRemote) main() common.Executor { return nil } eval := sar.RunContext.NewExpressionEvaluator(ctx) - copyToPath := filepath.Join(sar.RunContext.Config.ContainerWorkdir(), eval.Interpolate(ctx, sar.Step.With["path"])) + copyToPath := path.Join(sar.RunContext.Config.ContainerWorkdir(), eval.Interpolate(ctx, sar.Step.With["path"])) return sar.RunContext.JobContainer.CopyDir(copyToPath, sar.RunContext.Config.Workdir+string(filepath.Separator)+".", sar.RunContext.Config.UseGitIgnore)(ctx) }