Skip to content

Commit aca78f8

Browse files
authored
Merge pull request #210 from erizocosmico/feature/make-deps
gitbase: build bblfsh dependencies
2 parents 300fc41 + 106c45f commit aca78f8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ $(MAKEFILE):
1212
git clone --quiet --branch $(CI_VERSION) --depth 1 $(CI_REPOSITORY) $(CI_PATH);
1313

1414
-include $(MAKEFILE)
15+
16+
dependencies:
17+
cd vendor/gopkg.in/bblfsh/client-go.v2 && make dependencies

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ Query git repositories with a MySQL interface.
66

77
Check the [Releases](https://github.com/src-d/gitbase/releases) page to download the gitbase binary.
88

9+
### Installing from source
10+
11+
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`.
12+
13+
```
14+
go get github.com/src-d/gitbase/...
15+
cd $GOPATH/src/github.com/src-d/gitbase
16+
make dependencies
17+
```
18+
919
## Usage
1020

1121
```bash
@@ -45,7 +55,7 @@ gitbase exposes the following tables:
4555
| Name | Columns |
4656
|:------------:|:---------------------------------------------------------------------------------------------------:|
4757
| repositories |id |
48-
| remotes |repository_id, name, push_url,fetch_url,push_refspec,fetch_refspec |
58+
| remotes |repository_id, name, push_url,fetch_url,push_refspec,fetch_refspec |
4959
| commits | hash, author_name, author_email, author_when, comitter_name, comitter_email, comitter_when, message, tree_hash |
5060
| blobs | hash, size, content |
5161
| refs | repository_id, name, hash |

0 commit comments

Comments
 (0)