Skip to content

Commit

Permalink
fix: Windows path overrides are broken (#184)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
  • Loading branch information
greut committed Apr 2, 2024
1 parent a73573b commit a5a5d12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5a5d12

Please sign in to comment.