From 4e7bcf23b631e27e02513df2c2aaa8e564d536c9 Mon Sep 17 00:00:00 2001 From: Bar Weiss <33583364+barweiss@users.noreply.github.com> Date: Tue, 15 Sep 2020 17:00:15 +0300 Subject: [PATCH] Fix copyDir to normalize file paths in tar archive (#360) --- act/container/docker_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/container/docker_run.go b/act/container/docker_run.go index 79e35d1c..3c6fcff4 100644 --- a/act/container/docker_run.go +++ b/act/container/docker_run.go @@ -400,7 +400,7 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe } // update the name to correctly reflect the desired destination when untaring - header.Name = sansPrefix + header.Name = filepath.ToSlash(sansPrefix) header.Mode = int64(fi.Mode()) header.ModTime = fi.ModTime()