Move code into pkg directory (#22)

This commit is contained in:
Adrian Macneil 2018-01-07 20:12:56 -08:00 committed by GitHub
parent 4e01c75eca
commit 54a9fbc859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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"
) )

View file

@ -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)