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

2 Docker build issues with easy fix #180

Open
johnoloughlin opened this issue Feb 21, 2023 · 3 comments
Open

2 Docker build issues with easy fix #180

johnoloughlin opened this issue Feb 21, 2023 · 3 comments

Comments

@johnoloughlin
Copy link

johnoloughlin commented Feb 21, 2023

Issue 1

 ---> Running in c019ea76f5d2
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1
go: finding golang.org/x/net v0.7.0
go: extracting github.com/mattn/go-runewidth v0.0.9
go: downloading golang.org/x/net v0.7.0
go: extracting github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1
go: extracting golang.org/x/net v0.7.0
go: downloading golang.org/x/sys v0.5.0
go: extracting golang.org/x/sys v0.5.0
go: finding github.com/mattn/go-runewidth v0.0.9
go: finding github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1
go: finding golang.org/x/sys v0.5.0
# golang.org/x/sys/unix
/go/pkg/mod/golang.org/x/[email protected]/unix/syscall.go:83:16: undefined: unsafe.Slice
/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_linux.go:2271:9: undefined: unsafe.Slice
/go/pkg/mod/golang.org/x/[email protected]/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
/go/pkg/mod/golang.org/x/[email protected]/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
note: module requires Go 1.17

Issue 2

Step 4/4 : RUN mkdir /out &&     go build .
 ---> Running in 6298105a919c
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1
client.go:36:2: no required module provides package golang.org/x/net/icmp; to add it:
        go get golang.org/x/net/icmp
client.go:37:2: no required module provides package golang.org/x/net/ipv4; to add it:
        go get golang.org/x/net/ipv4
client.go:38:2: no required module provides package golang.org/x/net/ipv6; to add it:
        go get golang.org/x/net/ipv6

To fix the 2 issues

diff --git a/Dockerfile b/Dockerfile
index 8676acb..936ca02 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,10 @@
-FROM golang:1.13
+FROM golang:1.19

 WORKDIR /app

 ADD ./ /app

+RUN go get golang.org/x/net
+
 RUN mkdir /out && \
     go build .
diff --git a/go.mod b/go.mod
index dc863c7..62c1c5e 100644
--- a/go.mod
+++ b/go.mod
@Steve-Roderick
Copy link

I encountered this issue today (using podman) on master branch today. Patch looks good. Maybe this project is no longer maintained here?

@Steve-Roderick
Copy link

It looks like @moonfruit has an open PR with relevant patch for this issue here #156.

Thank you.

@Steve-Roderick
Copy link

Sorry for the spam. This issue is duplicated here #154

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

2 participants