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

Builder error encountered when running docker-compose #3

Open
CyberQuixotae opened this issue Jan 1, 2022 · 4 comments
Open

Builder error encountered when running docker-compose #3

CyberQuixotae opened this issue Jan 1, 2022 · 4 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@CyberQuixotae
Copy link

CyberQuixotae commented Jan 1, 2022

Following the steps from the quick start guide - Writing Your First App

image

cyberquixote@cyberquixote:/mnt/c/Users/cyber/Bytebot-Test/pingpong$ docker-compose up -d pingpong
[+] Building 4.0s (10/14)
 => [internal] load build definition from Dockerfile                                             0.1s
 => => transferring dockerfile: 32B                                                              0.0s
 => [internal] load .dockerignore                                                                0.1s
 => => transferring context: 2B                                                                  0.0s
 => [internal] load metadata for docker.io/library/golang:1.16.4-alpine3.13                      1.3s
 => [builder 1/6] FROM docker.io/library/golang:1.16.4-alpine3.13@sha256:0dc62c5cc2d97657c17ff3  0.0s
 => [internal] load build context                                                                0.0s
 => => transferring context: 115B                                                                0.0s
 => CACHED [builder 2/6] RUN adduser -D -g 'bytebot' bytebot                                     0.0s
 => CACHED [builder 3/6] WORKDIR /app                                                            0.0s
 => CACHED [builder 4/6] COPY . .                                                                0.0s
 => CACHED [builder 5/6] RUN apk add --no-cache git tzdata                                       0.0s
 => ERROR [builder 6/6] RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -ldflags "-s -w -  2.5s
------
 > [builder 6/6] RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -ldflags "-s -w -extldflags '-static'" -o ./opt/bytebot:
#10 1.964 go: downloading github.com/go-redis/redis/v8 v8.11.4
#10 1.964 go: downloading github.com/satori/go.uuid v1.2.0
#10 2.145 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
#10 2.146 go: downloading github.com/cespare/xxhash/v2 v2.1.2
#10 2.438 pingpong.go:9:2: no required module provides package github.com/bytebot-chat/gateway-discord/model; to add it:
#10 2.438       go get github.com/bytebot-chat/gateway-discord/model
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -ldflags "-s -w -extldflags '-static'" -o ./opt/bytebot]: exit code: 1

When I run go get github.com/bytebot-chat/gateway-discord/model I get the following error:

cyberquixote@cyberquixote:/mnt/c/Users/cyber/Bytebot-Test/pingpong$ go get github.com/bytebot-chat/gateway-discord/model
go get github.com/bytebot-chat/gateway-discord/model: no matching versions for query "upgrade"
@bbriggs
Copy link
Contributor

bbriggs commented Jan 1, 2022

What version of Go are you using?

@bbriggs bbriggs added bug Something isn't working documentation Improvements or additions to documentation labels Jan 1, 2022
@CyberQuixotae
Copy link
Author

cyberquixote@cyberquixote:/mnt/c/Users/cyber/Bytebot-Test/pingpong$ go version
go version go1.14.2 linux/amd64

@CyberQuixotae
Copy link
Author

CyberQuixotae commented Jan 1, 2022

I was able to repro this error as well using the pingpong example from the gateway discord repo. Same environment + go version. Just leaving a note for that here.

@parsec
Copy link
Member

parsec commented Jan 2, 2022

at first glance, it seems like it may be this:

#10 2.438 pingpong.go:9:2: no required module provides package github.com/bytebot-chat/gateway-discord/model; to add it:
#10 2.438       go get github.com/bytebot-chat/gateway-discord/model

it seems entirely possible that our go.mod isn't appropriately providing the model module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants