yoursunny / ndpresponder

IPv6 Neighbor Discovery Responder for KVM servers
https://yoursunny.com/t/2021/ndpresponder/
ISC License
62 stars 6 forks source link

Unable to compile latest version on Proxmox VE 8.2.7 #2

Open Tyrasuki opened 2 weeks ago

Tyrasuki commented 2 weeks ago

Howdy! I'm having a great time troubleshooting the wonders of NDP proxying on a hypervisor I'm setting up. :)

Whilst trying to compile ndresponder, I get the following error:

go: downloading github.com/yoursunny/ndpresponder v0.0.0-20240621192408-f7065caf8b6b
go: downloading github.com/gopacket/gopacket v1.2.0
go: downloading github.com/fsouza/go-dockerclient v1.11.0
go: downloading go.uber.org/zap v1.27.0
go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
go: downloading golang.org/x/sys v0.21.0
go: downloading golang.org/x/net v0.26.0
go: downloading github.com/vishvananda/netlink v1.2.1-beta.2
go: downloading github.com/urfave/cli/v2 v2.27.2
go: downloading github.com/vishvananda/netns v0.0.0-20211101163701-50045581ed74
go: downloading go.uber.org/multierr v1.10.0
go: downloading github.com/docker/docker v25.0.4+incompatible
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/moby/patternmatcher v0.6.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.4
go: downloading github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/morikuni/aec v1.0.0
go: downloading github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b
go: downloading github.com/klauspost/compress v1.15.9
go: downloading github.com/containerd/log v0.1.0
go: downloading github.com/containerd/containerd v1.6.26
go: downloading github.com/moby/sys/sequential v0.5.0
go: downloading github.com/moby/sys/user v0.1.0
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/opencontainers/go-digest v1.0.0
# github.com/docker/docker/pkg/archive
go/pkg/mod/github.com/docker/docker@v25.0.4+incompatible/pkg/archive/archive.go:783:24: undefined: strings.CutPrefix

Thought I'd report it in case anyone else stumbles into the same issue, as I did not see this listed here.

Cheers

yoursunny commented 1 week ago

strings.CutPrefix is added in Go 1.20. Are you using an older version? You can check Go version with go version command.