Add dependency installation to README

See https://github.com/tus/tusd/issues/187
This commit is contained in:
Marius 2018-05-13 13:58:24 +02:00 committed by GitHub
parent f36708c35a
commit dfaa279342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -32,11 +32,16 @@ Windows in various formats of the
### Compile from source ### Compile from source
The only requirement for building tusd is [Go](http://golang.org/doc/install) 1.5 or newer. The only requirement for building tusd is [Go](http://golang.org/doc/install) 1.5 or newer.
If you meet this criteria, you can clone the git repository and build the binary: If you meet this criteria, you can clone the git repository, install the remaining
depedencies and build the binary:
```bash ```bash
git clone git@github.com:tus/tusd.git git clone git@github.com:tus/tusd.git
cd tusd cd tusd
go get -u github.com/aws/aws-sdk-go/...
go get -u github.com/prometheus/client_golang/prometheus
go build -o tusd cmd/tusd/main.go go build -o tusd cmd/tusd/main.go
``` ```