Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #14 from abeaumont/v1
Browse files Browse the repository at this point in the history
Upgrade to support SDKv1
  • Loading branch information
abeaumont authored Sep 19, 2017
2 parents 801a7f7 + 1ee0d0e commit 44b705f
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: go
go:
- 1.9

go_import_path: gopkg.in/bblfsh/client-go.v0
go_import_path: gopkg.in/bblfsh/client-go.v1

sudo: required

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package configuration
PROJECT = client-go
LIBUAST_VERSION=0.2.0
LIBUAST_VERSION=1.0.0

# Including ci Makefile
MAKEFILE = Makefile.main
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# client-go [![GoDoc](https://godoc.org/gopkg.in/bblfsh/client-go.v0?status.svg)](https://godoc.org/gopkg.in/bblfsh/client-go.v0) [![Build Status](https://travis-ci.org/bblfsh/client-go.svg?branch=master)](https://travis-ci.org/bblfsh/client-go) [![codecov](https://codecov.io/gh/bblfsh/client-go/branch/master/graph/badge.svg)](https://codecov.io/gh/bblfsh/client-go)
# client-go [![GoDoc](https://godoc.org/gopkg.in/bblfsh/client-go.v1?status.svg)](https://godoc.org/gopkg.in/bblfsh/client-go.v1) [![Build Status](https://travis-ci.org/bblfsh/client-go.svg?branch=master)](https://travis-ci.org/bblfsh/client-go) [![codecov](https://codecov.io/gh/bblfsh/client-go/branch/master/graph/badge.svg)](https://codecov.io/gh/bblfsh/client-go)

[Babelfish](https://doc.bblf.sh) Go client library provides functionality to both
connect to the Babelfish server to parse code
Expand All @@ -10,8 +10,8 @@ and to analyse UASTs with the functionality provided by [libuast](https://github
The recommended way to install *client-go* is:

```
go get -u gopkg.in/bblfsh/client-go.v0/...
cd $GOPATH/src/gopkg.in/bblfsh/client-go.v0
go get -u gopkg.in/bblfsh/client-go.v1/...
cd $GOPATH/src/gopkg.in/bblfsh/client-go.v1
make dependencies
```

Expand Down Expand Up @@ -49,7 +49,7 @@ Module {
. Roles: File
. Children: {
. . 0: Import {
. . . Roles: ImportDeclaration,Statement
. . . Roles: Statement,Declaration,Import
. . . StartPosition: {
. . . . Offset: 0
. . . . Line: 1
Expand All @@ -60,7 +60,7 @@ Module {
. . . }
. . . Children: {
. . . . 0: alias {
. . . . . Roles: ImportPath,SimpleIdentifier
. . . . . Roles: Import,Pathname,Identifier
. . . . . TOKEN "foo"
. . . . . Properties: {
. . . . . . asname: <nil>
Expand Down
2 changes: 1 addition & 1 deletion _example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"gopkg.in/bblfsh/client-go.v0"
"gopkg.in/bblfsh/client-go.v1"
)

var endpoint = flag.String("e", "localhost:9432", "endpoint of the babelfish server")
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package bblfsh
import (
"time"

"gopkg.in/bblfsh/sdk.v0/protocol"
"gopkg.in/bblfsh/sdk.v1/protocol"
"google.golang.org/grpc"
)

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Babelfish (https://doc.bblf.sh) Go client library provides functionality to
// both connect to the Babelfish server to parse code (obtaining an UAST as a
// result) and to analyse UASTs with the functionality provided by libuast.
package bblfsh // import "gopkg.in/bblfsh/client-go.v0"
package bblfsh // import "gopkg.in/bblfsh/client-go.v1"
2 changes: 1 addition & 1 deletion libuast.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"unsafe"

"gopkg.in/bblfsh/sdk.v0/uast"
"gopkg.in/bblfsh/sdk.v1/uast"
)

// #cgo CFLAGS: -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/include/libxml2 -std=c99
Expand Down
2 changes: 1 addition & 1 deletion parse_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"path"

"gopkg.in/bblfsh/sdk.v0/protocol"
"gopkg.in/bblfsh/sdk.v1/protocol"
)

// ParseRequest is a placeholder for the parse requests performed by the library
Expand Down
2 changes: 1 addition & 1 deletion parse_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/require"
"gopkg.in/bblfsh/sdk.v0/protocol"
"gopkg.in/bblfsh/sdk.v1/protocol"
)

func TestParseRequestConfiguration(t *testing.T) {
Expand Down

0 comments on commit 44b705f

Please sign in to comment.