From 9d294dacf1a9e2e66cae19ec41267487b104c401 Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Tue, 17 Sep 2019 00:04:28 +0000 Subject: [PATCH] Add missing `git checkout` to build instructions --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4d1c01..0041117 100644 --- a/README.md +++ b/README.md @@ -99,9 +99,25 @@ Option A: Using Go build commands (works on any platform with Bash): 2. Run `go get -d -t -u github.com/namecoin/ncdns/...`. The ncdns source code will be retrieved automatically. -3. Run `go generate github.com/namecoin/x509-signature-splice/...`. Some source code will be generated. +3. Run `pushd $(go env GOPATH)/src/github.com/namecoin/x509-signature-splice`. -4. Run `go get -t github.com/namecoin/ncdns/...`. ncdns will be built. The binaries will be at +4. Depending on your Go version (run `go version` to check), run one of the following: + + | **Go version** | **Run this** | + -------------------|-----------------------| + | 1.8.x or earlier | `git checkout go1.6` | + | 1.9.x | `git checkout go1.9` | + | 1.10.x | `git checkout go1.10` | + | 1.11.x | `git checkout go1.11` | + | 1.12.x | `git checkout go1.12` | + | 1.13.x or later | `git checkout master` | + + +5. Run `popd`. + +6. Run `go generate github.com/namecoin/x509-signature-splice/...`. Some source code will be generated. + +7. Run `go get -t github.com/namecoin/ncdns/...`. ncdns will be built. The binaries will be at $GOPATH/bin/ncdns. Option B: Using Makefile (non-Windows platforms):