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

Diff for: .gitignore

+1
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]

Diff for: .travis.yml

+3-7
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

Diff for: Gopkg.lock

+195
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Gopkg.toml

+32
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"

Diff for: blobs_test.go

+1-1
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

Diff for: commits_test.go

+1-1
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) {

Diff for: database_test.go

+3-3
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 (

Diff for: objects_test.go

+1-1
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) {

Diff for: references_test.go

+1-1
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) {

Diff for: tags_test.go

+1-1
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

Diff for: tree_entries_test.go

+1-1
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)