diff --git a/internal/file/file_notjs.go b/internal/file/file_notjs.go index f9428b85b..ea58456af 100644 --- a/internal/file/file_notjs.go +++ b/internal/file/file_notjs.go @@ -64,7 +64,8 @@ func (v *VirtualFS) Open(name string) (fs.File, error) { if filepath.Base(realPath) != es[0] { continue } - // TODO: Does this work on Windows? + // os.File should implement fs.File interface, so this should be fine even on Windows. + // See https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/os/file.go;l=695-710 return os.Open(filepath.Join(append([]string{realPath}, es[1:]...)...)) }