This is an automated email from the ASF dual-hosted git repository. jpoth pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push: new 0ec183bbb Fix #3257: fix uploading checksum files to the image registry on Windows 0ec183bbb is described below commit 0ec183bbbff0347ff4bda18f7286f67e57fbc879 Author: John Poth <poth.j...@gmail.com> AuthorDate: Wed May 18 11:50:47 2022 +0200 Fix #3257: fix uploading checksum files to the image registry on Windows --- pkg/cmd/run.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go index cd9fe0873..a51154c5e 100644 --- a/pkg/cmd/run.go +++ b/pkg/cmd/run.go @@ -1065,6 +1065,15 @@ func uploadChecksumFile(hash hash.Hash, tmpDir string, ext string, path string, filename := "maven_" + filepath.Base(path) + ext filepath := filepath.Join(tmpDir, filename) + if runtimeos.GOOS == "windows" { + // workaround for https://github.com/container-tools/spectrum/issues/8 + // work with relative paths instead + rel, err := getRelativeToWorkingDirectory(path) + if err != nil { + return err + } + filepath = rel + } if err = writeChecksumToFile(filepath, hash); err != nil { return err