From a5a5d12530673d7b1b65dcf3d2019286c7f6b4b6 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Tue, 2 Apr 2024 13:20:09 +0200 Subject: [PATCH] fix: Windows path overrides are broken (#184) Signed-off-by: Yoan Blanc --- config.go | 3 +++ 1 file changed, 3 insertions(+) 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)