From b408318acbc2b1154d710f559d7572c110a94445 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Wed, 15 Nov 2023 20:43:44 -0600 Subject: [PATCH] fix: filepath sep on windows (#615) --- backend/internal/data/migrations/migrations.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/internal/data/migrations/migrations.go b/backend/internal/data/migrations/migrations.go index d477df9..2858b53 100644 --- a/backend/internal/data/migrations/migrations.go +++ b/backend/internal/data/migrations/migrations.go @@ -3,7 +3,7 @@ package migrations import ( "embed" "os" - "path/filepath" + "path" ) //go:embed all:migrations @@ -28,12 +28,12 @@ func Write(temp string) error { continue } - b, err := Files.ReadFile(filepath.Join("migrations", f.Name())) + b, err := Files.ReadFile(path.Join("migrations", f.Name())) if err != nil { 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 { return err }