Fix fix uploading checksum files to the image registry on Windows
@@ -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
