Skip to content

Commit

Permalink
Fix for errata not matching keys on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty committed Oct 30, 2024
1 parent e079d34 commit d3997c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions errata/errata.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package errata

import "path/filepath"

type Errata struct {
Disco Disco `yaml:"disco,omitempty"`
Spec Spec `yaml:"spec,omitempty"`
Expand All @@ -10,6 +12,7 @@ type Errata struct {
var DefaultErrata = &Errata{}

func GetErrata(path string) *Errata {
path = filepath.ToSlash(path)
errata, ok := Erratas[path]
if ok {
return errata
Expand Down

0 comments on commit d3997c1

Please sign in to comment.