Skip to content

Commit 0f413ce

Browse files
ajnavarrosmola
authored andcommitted
Add dep to manage project dependencies (#127)
* Add dep to manage project dependencies * Also go-git has been updated to the latest version.
1 parent abcc325 commit 0f413ce

11 files changed

+240
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Folders
77
_obj
88
_test
9+
vendor
910

1011
# Architecture specific extensions/prefixes
1112
*.[568vq]

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
language: go
22
sudo: false
33
go:
4-
- 1.8
54
- 1.9
65
- tip
6+
go_import_path: gopkg.in/sqle/gitquery.v0
77
matrix:
88
fast_finish: true
99
allow_failures:
1010
- go: tip
11-
before_install:
12-
- rm -rf $GOPATH/src/gopkg.in/sqle
13-
- mkdir -p $GOPATH/src/gopkg.in/sqle
14-
- ln -s $PWD $GOPATH/src/gopkg.in/sqle/gitquery.v0
15-
- cd $GOPATH/src/gopkg.in/sqle/gitquery.v0
16-
- go get -t -v ./...
1711
install:
12+
- go get -u github.com/golang/dep/cmd/dep
13+
- dep ensure -v
1814
- go build -ldflags="-X main.version=$TRAVIS_TAG" -v -o gitquery ./cmd/...
1915
script:
2016
- sh ./go.test.sh

Gopkg.lock

Lines changed: 195 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[[constraint]]
2+
name = "github.com/chzyer/readline"
3+
version = "1.4.0"
4+
5+
[[constraint]]
6+
name = "github.com/fatih/color"
7+
version = "1.5.0"
8+
9+
[[constraint]]
10+
name = "github.com/jessevdk/go-flags"
11+
version = "1.3.0"
12+
13+
[[constraint]]
14+
branch = "master"
15+
name = "github.com/olekukonko/tablewriter"
16+
17+
[[constraint]]
18+
name = "github.com/stretchr/testify"
19+
version = "1.1.4"
20+
21+
[[constraint]]
22+
name = "gopkg.in/sqle/sqle.v0"
23+
version = "0.7.0"
24+
25+
[[constraint]]
26+
name = "gopkg.in/src-d/go-git.v4"
27+
source = "github.com/src-d/go-git"
28+
revision = "44c364fe3b7b8cdc0f9623afe870d6781a97ebb4"
29+
30+
[[constraint]]
31+
name = "gopkg.in/src-d/go-git-fixtures.v3"
32+
version = "3.0.0"

blobs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"gopkg.in/sqle/sqle.v0/sql"
77

8-
"github.com/src-d/go-git-fixtures"
8+
"gopkg.in/src-d/go-git-fixtures.v3"
99
"github.com/stretchr/testify/assert"
1010
)
1111

commits_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"gopkg.in/sqle/sqle.v0/sql"
77

8-
"github.com/src-d/go-git-fixtures"
98
"github.com/stretchr/testify/assert"
9+
"gopkg.in/src-d/go-git-fixtures.v3"
1010
)
1111

1212
func TestCommitsTable_Name(t *testing.T) {

database_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import (
66

77
"gopkg.in/sqle/sqle.v0/sql"
88

9-
"github.com/src-d/go-git-fixtures"
109
"github.com/stretchr/testify/assert"
11-
"gopkg.in/src-d/go-billy.v3/memfs"
10+
"gopkg.in/src-d/go-billy.v4/memfs"
11+
"gopkg.in/src-d/go-git-fixtures.v3"
1212
"gopkg.in/src-d/go-git.v4"
1313
"gopkg.in/src-d/go-git.v4/storage/filesystem"
1414
)
1515

1616
func init() {
17-
fixtures.RootFolder = "../../../github.com/src-d/go-git-fixtures/"
17+
fixtures.RootFolder = "vendor/gopkg.in/src-d/go-git-fixtures.v3/"
1818
}
1919

2020
const (

objects_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"gopkg.in/sqle/sqle.v0/sql"
77

8-
"github.com/src-d/go-git-fixtures"
98
"github.com/stretchr/testify/assert"
9+
"gopkg.in/src-d/go-git-fixtures.v3"
1010
)
1111

1212
func TestObjectsTable_Name(t *testing.T) {

references_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"gopkg.in/sqle/sqle.v0/sql/expression"
88
"gopkg.in/sqle/sqle.v0/sql/plan"
99

10-
"github.com/src-d/go-git-fixtures"
1110
"github.com/stretchr/testify/assert"
11+
"gopkg.in/src-d/go-git-fixtures.v3"
1212
)
1313

1414
func TestReferencesTable_Name(t *testing.T) {

tags_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"gopkg.in/sqle/sqle.v0/sql"
77

8-
"github.com/src-d/go-git-fixtures"
8+
"gopkg.in/src-d/go-git-fixtures.v3"
99
"github.com/stretchr/testify/assert"
1010
)
1111

0 commit comments

Comments
 (0)