fix: filepath sep on windows (#615)

Former-commit-id: b408318acb
This commit is contained in:
Hayden 2023-11-15 20:43:44 -06:00 committed by GitHub
parent 1adf24e109
commit ba2e66a014

View file

@ -3,7 +3,7 @@ package migrations
import ( import (
"embed" "embed"
"os" "os"
"path/filepath" "path"
) )
//go:embed all:migrations //go:embed all:migrations
@ -28,12 +28,12 @@ func Write(temp string) error {
continue continue
} }
b, err := Files.ReadFile(filepath.Join("migrations", f.Name())) b, err := Files.ReadFile(path.Join("migrations", f.Name()))
if err != nil { if err != nil {
return err return err
} }
err = os.WriteFile(filepath.Join(temp, f.Name()), b, 0o644) err = os.WriteFile(path.Join(temp, f.Name()), b, 0o644)
if err != nil { if err != nil {
return err return err
} }