Skip to content

Commit 69e785c

Browse files
authored
Update go install instructions (keybase#24703)
1 parent 2941dec commit 69e785c

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

‎go/README.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ instructions](https://keybase.io/download).
2626
### Building
2727

2828
Here's how to build the command line client on Linux or OSX. You need to
29-
have both Git and **Go 1.15 or higher** installed. (Run `go version` to
29+
have both Git and **Go 1.17 or higher** installed. (Run `go version` to
3030
see what version you have.)
3131

3232
```bash
@@ -37,8 +37,12 @@ mkdir ~/gopath
3737
export GOPATH="$HOME/gopath" # Consider putting this in your ~/.bashrc.
3838
export PATH="$PATH:$GOPATH/bin" # Ditto.
3939

40-
# Now for the actual clone and build.
41-
go get github.com/keybase/client/go/keybase
40+
# Now for the actual clone and build. Currently the Keybase client depends
41+
# on go.mod replace directives, so a `go get` of the repository cannot be
42+
# used. You should use `git` to clone the repository instead.
43+
# See https://github.com/golang/go/issues/30354 for more details.
44+
git clone https://github.com/keybase/client.git
45+
cd client/go
4246
go install -tags production github.com/keybase/client/go/keybase
4347

4448
# If you did the PATH bit above, this should just work.

‎go/go.mod‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ require (
99
github.com/akavel/rsrc v0.2.1-0.20151103204339-ba14da1f8271
1010
github.com/araddon/dateparse v0.0.0-20180729174819-cfd92a431d0e
1111
github.com/blang/semver v3.5.1+incompatible
12+
// NOTE: if bleve is updated, consider removing the `replace` directive
13+
// for bbolt at the bottom of this go.mod
1214
github.com/blevesearch/bleve v0.8.2-0.20191030071327-189ee421f71e
1315
github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a
1416
github.com/buger/jsonparser v0.0.0-20180131123142-4be68c93a244
@@ -64,6 +66,8 @@ require (
6466
github.com/sergi/go-diff v1.2.0
6567
github.com/shirou/gopsutil v2.18.13-0.20181231150826-db425313bfa8+incompatible
6668
github.com/stathat/go v1.0.0
69+
// NOTE: if stellar/go is updated, consider removing the `replace` directive
70+
// for goautoneg at the bottom of this go.mod
6771
github.com/stellar/go v0.0.0-20191010205648-0fc3bfe3dfa7
6872
github.com/stretchr/testify v1.7.0
6973
github.com/syndtr/goleveldb v1.0.0
@@ -294,7 +298,6 @@ require (
294298
// keybase maintained forks
295299
replace (
296300
bazil.org/fuse => github.com/keybase/fuse v0.0.0-20210104232444-d36009698767
297-
bitbucket.org/ww/goautoneg => github.com/adjust/goautoneg v0.0.0-20150426214442-d788f35a0315
298301
github.com/stellar/go => github.com/keybase/stellar-org v0.0.0-20191010205648-0fc3bfe3dfa7
299302
github.com/syndtr/goleveldb => github.com/keybase/goleveldb v1.0.1-0.20211106225230-2a53fac0721c
300303
gopkg.in/src-d/go-billy.v4 => github.com/keybase/go-billy v3.1.1-0.20180828145748-b5a7b7bc2074+incompatible
@@ -306,4 +309,8 @@ replace (
306309
// should be removed if bleve is updated to a commit past https://github.com/blevesearch/bleve/commit/a9895fdf9c72cfaa202128a963697d9a98765369
307310
replace github.com/etcd-io/bbolt => go.etcd.io/bbolt v1.3.4-0.20191122203157-7f8bb47fcaf8
308311

312+
// temporary workaround for https://github.com/stellar/go/issues/2039
313+
// should be removed if stellar/go is updated to a commit past https://github.com/stellar/go/commit/f686b01b140bb57abcb8643240c3b6a134dad3ff
314+
replace bitbucket.org/ww/goautoneg => github.com/adjust/goautoneg v0.0.0-20150426214442-d788f35a0315
315+
309316
replace os/exec => golang.org/x/sys/execabs v0.0.0-20211117180635-dee7805ff2e1

0 commit comments

Comments
 (0)