Skip to content

Commit 55d5740

Browse files
authored
Merge pull request rubenv#195 from fredericobormann/master
Fix Windows filepath separator bug
2 parents 81188d5 + 6f4e493 commit 55d5740

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

migrate.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"net/http"
1010
"os"
1111
"path"
12-
"path/filepath"
1312
"regexp"
1413
"sort"
1514
"strconv"
@@ -276,7 +275,7 @@ func findMigrations(dir http.FileSystem, root string) ([]*Migration, error) {
276275
}
277276

278277
func migrationFromFile(dir http.FileSystem, root string, info os.FileInfo) (*Migration, error) {
279-
path := filepath.Join(root, info.Name())
278+
path := path.Join(root, info.Name())
280279
file, err := dir.Open(path)
281280
if err != nil {
282281
return nil, fmt.Errorf("Error while opening %s: %s", info.Name(), err)

0 commit comments

Comments
 (0)