diff --git a/.gitignore b/.gitignore index 29460701..09b89f9c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ *.sw? *.db *.tmp -generated_*.go +vendor diff --git a/.travis.yml b/.travis.yml index 48bb72ba..658653bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,7 @@ install: - export TRAVIS_BUILD_DIR=$GOPATH/src/upper.io/db.v3 - mv $PWD $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR + - if [ ! -z "$(go version | grep go1.12)" ]; then export GO111MODULE=on; fi - go get -t -v -d ./... - go get -v modernc.org/ql/ql diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..4fe8938b --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module upper.io/db.v3 + +go 1.12