Skip to content

Commit d3db798

Browse files
authored
Merge pull request #347 from erizocosmico/upgrade/client-go
vendor: upgrade bblfsh client-go
2 parents 8c3838d + fb1d5fe commit d3db798

25 files changed

+1313
-162
lines changed

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ before_install:
2222
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
2323
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
2424

25-
install:
26-
- cd ./vendor/gopkg.in/bblfsh/client-go.v2
27-
- make dependencies
28-
- cd ./../../../..
29-
- make dependencies
30-
3125
before_script:
3226
- docker run -d --name bblfshd --privileged -p 9432:9432 -v /var/lib/bblfshd:/var/lib/bblfshd bblfsh/bblfshd
3327
- docker exec -it bblfshd bblfshctl driver install python bblfsh/python-driver

Gopkg.lock

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

Gopkg.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949

5050
[[constraint]]
5151
name = "gopkg.in/bblfsh/client-go.v2"
52-
version = "2.5.1"
52+
version = "2.6.0"
5353

5454
[[constraint]]
5555
name = "gopkg.in/bblfsh/sdk.v1"
56-
version = "1.16.0"
56+
version = "1.16.0"

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ $(MAKEFILE):
1313

1414
-include $(MAKEFILE)
1515

16+
# we still need to do this for windows
1617
bblfsh-client:
1718
cd vendor/gopkg.in/bblfsh/client-go.v2 && make dependencies
1819

19-
dependencies: bblfsh-client
20+
dependencies: bblfsh-client

docs/using-gitbase/getting-started.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ $ gitbase server -v -g /path/to/repositories
2121

2222
## Installing from source
2323

24-
Because gitbase uses [bblfsh's client-go](https://github.com/bblfsh/client-go), which uses cgo, you need to install some dependencies by hand instead of just using `go get`.
24+
On Linux and macOS:
2525

26-
**Note**: we use `go get -d` so the code is not compiled yet, as it would
27-
fail before `make dependencies` is executed successfully.
26+
```
27+
go get -u github.com/src-d/gitbase/...
28+
```
29+
30+
On Windows:
31+
32+
Because gitbase uses [bblfsh's client-go](https://github.com/bblfsh/client-go), which uses cgo, you need to install some dependencies by hand instead of just using `go get`. Use this instead:
2833

2934
```
3035
$ go get -d github.com/src-d/gitbase

internal/function/uast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (f UAST) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
197197

198198
resp, err := client.Parse(ctx, lang, bytes)
199199
if err != nil {
200-
return nil, err
200+
return nil, ErrParseBlob.New(err)
201201
}
202202

203203
if resp.Status != protocol.Ok {

vendor/gopkg.in/bblfsh/client-go.v2/.appveyor.yml

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

vendor/gopkg.in/bblfsh/client-go.v2/.gitignore

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

vendor/gopkg.in/bblfsh/client-go.v2/.travis.yml

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

vendor/gopkg.in/bblfsh/client-go.v2/Makefile

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

vendor/gopkg.in/bblfsh/client-go.v2/README.md

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/bblfsh/client-go.v2/appveyor.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/gopkg.in/bblfsh/client-go.v2/request.go

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

0 commit comments

Comments
 (0)