From f84a566ded8d03bc4daee36bb7df2502a8351409 Mon Sep 17 00:00:00 2001 From: benbaker76 Date: Wed, 3 May 2023 12:12:36 -0700 Subject: [PATCH] Replace backslash in GetActPath() for Windows (#1777) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/container/host_environment.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/container/host_environment.go b/pkg/container/host_environment.go index abc1115a..e0a18c7c 100644 --- a/pkg/container/host_environment.go +++ b/pkg/container/host_environment.go @@ -362,7 +362,11 @@ func (e *HostEnvironment) ToContainerPath(path string) string { } func (e *HostEnvironment) GetActPath() string { - return e.ActPath + actPath := e.ActPath + if runtime.GOOS == "windows" { + actPath = strings.ReplaceAll(actPath, "\\", "/") + } + return actPath } func (*HostEnvironment) GetPathVariableName() string {