bot-sshca icon indicating copy to clipboard operation
bot-sshca copied to clipboard

make generate not working

Open rotarur opened this issue 4 years ago • 3 comments

Hello,

When I run this command make generate it throws me an error:

Step 6/26 : RUN go get -d github.com/keybase/client/go/keybase
 ---> Running in 07fd9073caf5
package github.com/stellar/go/build: cannot find package "github.com/stellar/go/build" in any of:
	/usr/lib/go/src/github.com/stellar/go/build (from $GOROOT)
	/go/src/github.com/stellar/go/build (from $GOPATH)
package github.com/stellar/go/clients/horizon: cannot find package "github.com/stellar/go/clients/horizon" in any of:
	/usr/lib/go/src/github.com/stellar/go/clients/horizon (from $GOROOT)
	/go/src/github.com/stellar/go/clients/horizon (from $GOPATH)
The command '/bin/sh -c go get -d github.com/keybase/client/go/keybase' returned a non-zero code: 1
make: *** [Makefile:18: build] Error 1

The installation is not possible anymore, please help

rotarur avatar Jan 08 '22 10:01 rotarur

Also hitting this.

Step 6/26 : RUN go get -d github.com/keybase/client/go/keybase
 ---> Running in 2d9960ec51ab
package github.com/btcsuite/btcutil/bech32: cannot find package "github.com/btcsuite/btcutil/bech32" in any of:
	/usr/lib/go/src/github.com/btcsuite/btcutil/bech32 (from $GOROOT)
	/go/src/github.com/btcsuite/btcutil/bech32 (from $GOPATH)
package camlistore.org/pkg/images: unrecognized import path "camlistore.org/pkg/images" (https fetch: Get https://camlistore.org/pkg/images?go-get=1: dial tcp 104.197.157.20:443: i/o timeout)
package github.com/stellar/go/build: cannot find package "github.com/stellar/go/build" in any of:
	/usr/lib/go/src/github.com/stellar/go/build (from $GOROOT)
	/go/src/github.com/stellar/go/build (from $GOPATH)
package github.com/stellar/go/clients/horizon: cannot find package "github.com/stellar/go/clients/horizon" in any of:
	/usr/lib/go/src/github.com/stellar/go/clients/horizon (from $GOROOT)
	/go/src/github.com/stellar/go/clients/horizon (from $GOPATH)
The command '/bin/sh -c go get -d github.com/keybase/client/go/keybase' returned a non-zero code: 1

cjbirk avatar Jul 14 '22 00:07 cjbirk

Ok, I was able to fix this with some help from dxb on keybase chat. Go tooling sucks, surprise. I modified the Dockerfile-ca to git clone the repo and build:

#ENV KEYBASE_VERSION=5.4.0
ENV KEYBASE_VERSION=6.0.2
#RUN go get -d github.com/keybase/client/go/keybase
RUN git clone https://github.com/keybase/client.git
RUN cd client/go && go install -tags production github.com/keybase/client/go/keybase
#RUN cd src/github.com/keybase/client/go/keybase && git checkout v$KEYBASE_VERSION
#RUN go install -tags production github.com/keybase/client/go/keybase

# build kbfsfuse binary (we won't use FUSE but the bot needs KBFS for exchanging Team config files)
#RUN go install -tags production github.com/keybase/client/go/kbfs/kbfsfuse
RUN cd client/go/kbfs/kbfsfuse && go install -tags production github.com/keybase/client/go/kbfs/kbfsfuse

This built everything successfully.

cjbirk avatar Jul 14 '22 03:07 cjbirk

One other thing to note - just in case anyone runs into the same issue as me if you are upgrading from a previous version of bot-sshca - make sure your env.list does not have any quotes in the variable values.. once i got everything to build the container wouldn't start properly because of that.

cjbirk avatar Jul 14 '22 04:07 cjbirk