README: require go1.11, document module installation

This commit is contained in:
Conner Fromknecht 2018-11-29 17:53:41 -08:00
parent 2f3be2e337
commit 20388be196
No known key found for this signature in database
GPG key ID: E7D737B67FA592C7

View file

@ -35,7 +35,7 @@ which are both under active development.
## Requirements ## Requirements
[Go](http://golang.org) 1.8 or newer. [Go](http://golang.org) 1.11 or newer.
## Installation ## Installation
@ -63,11 +63,8 @@ recommended that `GOPATH` is set to a directory in your home directory such as
- Run the following commands to obtain btcd, all dependencies, and install it: - Run the following commands to obtain btcd, all dependencies, and install it:
```bash ```bash
$ go get -u github.com/Masterminds/glide
$ git clone https://github.com/btcsuite/btcd $GOPATH/src/github.com/btcsuite/btcd
$ cd $GOPATH/src/github.com/btcsuite/btcd $ cd $GOPATH/src/github.com/btcsuite/btcd
$ glide install $ GO111MODULE=on go install -v . ./cmd/...
$ go install . ./cmd/...
``` ```
- btcd (and utilities) will now be installed in ```$GOPATH/bin```. If you did - btcd (and utilities) will now be installed in ```$GOPATH/bin```. If you did
@ -86,8 +83,8 @@ Install a newer MSI
```bash ```bash
$ cd $GOPATH/src/github.com/btcsuite/btcd $ cd $GOPATH/src/github.com/btcsuite/btcd
$ git pull && glide install $ git pull
$ go install . ./cmd/... $ GO111MODULE=on go install -v . ./cmd/...
``` ```
## Getting Started ## Getting Started