diff --git a/config.go b/config.go index 1a737ab..21eda52 100644 --- a/config.go +++ b/config.go @@ -92,6 +92,9 @@ func (config *Config) LoadGraceful(filename string) (*Definition, error, error) relativeFilename = relativeFilename[len(dir):] } + // turn any Windows-y filename into the standard forward slash ones. + relativeFilename = filepath.ToSlash(relativeFilename) + def, err := ec.GetDefinitionForFilename(relativeFilename) if err != nil { return nil, nil, fmt.Errorf("cannot get definition for %q: %w", relativeFilename, err)