From 83ce2b3ccd3c912abc8bfce2c120bf2f5f21f00a Mon Sep 17 00:00:00 2001 From: Arthur Sengileyev Date: Fri, 24 Jan 2025 12:54:59 +0200 Subject: [PATCH] Remove unnecessary platform specific workaround in iso9660util Signed-off-by: Arthur Sengileyev --- pkg/iso9660util/iso9660util.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/iso9660util/iso9660util.go b/pkg/iso9660util/iso9660util.go index 74ef0bbe974..ff8ccca5212 100644 --- a/pkg/iso9660util/iso9660util.go +++ b/pkg/iso9660util/iso9660util.go @@ -4,8 +4,6 @@ import ( "io" "os" "path" - "path/filepath" - "runtime" "github.com/diskfs/go-diskfs/filesystem" "github.com/diskfs/go-diskfs/filesystem/iso9660" @@ -33,10 +31,6 @@ func Write(isoPath, label string, layout []Entry) error { if err != nil { return err } - if runtime.GOOS == "windows" { - // go-embed unfortunately needs unix path - workdir = filepath.ToSlash(workdir) - } logrus.Debugf("Creating iso file %s", isoFile.Name()) logrus.Debugf("Using %s as workspace", workdir) fs, err := iso9660.Create(isoFile, 0, 0, 0, workdir)