From 31e55ce899aad34380a126f2c3b9cea88f4a9126 Mon Sep 17 00:00:00 2001 From: Lonnie Liu <95255098+aslonnie@users.noreply.github.com> Date: Sat, 28 Sep 2024 20:40:43 -0700 Subject: [PATCH] [maketmpl] perform filepath convertion (#366) not that we need to run on windows, but it is the right thing to do nonetheless --- ci/maketmpl/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/maketmpl/util.go b/ci/maketmpl/util.go index e553e1b5e..f332ba54d 100644 --- a/ci/maketmpl/util.go +++ b/ci/maketmpl/util.go @@ -65,7 +65,7 @@ func buildZip(srcDir string, files []*zipFile, out string) error { if f.rc == nil { src := f.srcFilePath if src == "" { - src = filepath.Join(srcDir, f.path) + src = filepath.Join(srcDir, filepath.FromSlash(f.path)) } if err := addFileToZip(z, src, f.path); err != nil { return fmt.Errorf("add file %q to zip: %w", f, err)