Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make generate not working #105

Open
rotarur opened this issue Jan 8, 2022 · 3 comments · May be fixed by #107
Open

make generate not working #105

rotarur opened this issue Jan 8, 2022 · 3 comments · May be fixed by #107

Comments

@rotarur
Copy link

rotarur commented Jan 8, 2022

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

@cjbirk
Copy link

cjbirk commented Jul 14, 2022

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
Copy link

cjbirk commented Jul 14, 2022

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
Copy link

cjbirk commented Jul 14, 2022

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.

mjmenger added a commit to mjmenger/bot-sshca that referenced this issue Aug 11, 2022
fixes keybase#105 

as described by @cjbirk in keybase#105 (comment)

testing was limited to one environment with Ubuntu 20.04
@mjmenger mjmenger linked a pull request Aug 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants