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

Docker Build Failing #27

Open
jspizziri opened this issue Mar 27, 2023 · 2 comments
Open

Docker Build Failing #27

jspizziri opened this issue Mar 27, 2023 · 2 comments

Comments

@jspizziri
Copy link

jspizziri commented Mar 27, 2023

Thanks for the project! The docker build is currently failing:

❯ docker-compose build
[+] Building 1.9s (8/8) FINISHED
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 32B                                                                                  0.0s
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 2B                                                                                      0.0s
 => [internal] load metadata for docker.io/library/golang:latest                                                     1.6s
 => [internal] load build context                                                                                    0.0s
 => => transferring context: 22.92kB                                                                                 0.0s
 => [1/4] FROM docker.io/library/golang@sha256:1724dc3128e2e63f0bc3e055fe4fa478d67f6da4bd95c0e69690f6435f658804      0.0s
 => CACHED [2/4] WORKDIR /go/src/github.com/easonlin404/ksm                                                          0.0s
 => CACHED [3/4] ADD . /go/src/github.com/easonlin404/ksm                                                            0.0s
 => ERROR [4/4] RUN go get -t -v ./...                                                                               0.2s
------
 > [4/4] RUN go get -t -v ./...:
#0 0.188 go: go.mod file not found in current directory or any parent directory.
#0 0.188 	'go get' is no longer supported outside a module.
#0 0.188 	To build and install a command, use 'go install' with a version,
#0 0.188 	like 'go install example.com/cmd@latest'
#0 0.188 	For more information, see https://golang.org/doc/go-get-install-deprecation
#0 0.188 	or run 'go help get' or 'go help install'.
------
failed to solve: executor failed running [/bin/sh -c go get -t -v ./...]: exit code: 1

I'm guessing you need to target a specific version of the golang image?

@jspizziri
Copy link
Author

jspizziri commented Mar 27, 2023

#29

@jspizziri
Copy link
Author

Looking at this more closely it might be the same issue as #20, the PR linked in that issue never actually got merged.

Are there any alternatives here?

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

No branches or pull requests

1 participant