From 6f4e493a862b8c4709b0dee953bf9501a8469237 Mon Sep 17 00:00:00 2001 From: Frederico Bormann Date: Sun, 13 Jun 2021 20:56:54 +0200 Subject: [PATCH] Fix Windows filepath separator bug --- migrate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migrate.go b/migrate.go index b4b5ee0b..8973ee98 100644 --- a/migrate.go +++ b/migrate.go @@ -9,7 +9,6 @@ import ( "net/http" "os" "path" - "path/filepath" "regexp" "sort" "strconv" @@ -276,7 +275,7 @@ func findMigrations(dir http.FileSystem, root string) ([]*Migration, error) { } func migrationFromFile(dir http.FileSystem, root string, info os.FileInfo) (*Migration, error) { - path := filepath.Join(root, info.Name()) + path := path.Join(root, info.Name()) file, err := dir.Open(path) if err != nil { return nil, fmt.Errorf("Error while opening %s: %s", info.Name(), err)