mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Move code into pkg directory (#22)
This commit is contained in:
parent
4e01c75eca
commit
54a9fbc859
15 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
DC := docker-compose
|
DC := docker-compose
|
||||||
BUILD_FLAGS := -ldflags '-s'
|
BUILD_FLAGS := -ldflags '-s'
|
||||||
PACKAGES := . ./cmd/dbmate
|
PACKAGES := ./cmd/... ./pkg/...
|
||||||
|
|
||||||
all: clean container test lint build
|
all: clean container test lint build
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/amacneil/dbmate"
|
"github.com/amacneil/dbmate/pkg/dbmate"
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ func newTestDB(t *testing.T, u *url.URL) *DB {
|
||||||
|
|
||||||
// only chdir once, because testdata is relative to current directory
|
// only chdir once, because testdata is relative to current directory
|
||||||
if testdataDir == "" {
|
if testdataDir == "" {
|
||||||
testdataDir, err = filepath.Abs("./testdata")
|
testdataDir, err = filepath.Abs("../../testdata")
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
|
|
||||||
err = os.Chdir(testdataDir)
|
err = os.Chdir(testdataDir)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue