ThreeDotsLabs / nats-example

An example Go project for running local development environment, with hot code reloading.
MIT License
100 stars 25 forks source link

building error #4

Open Prokop6 opened 1 year ago

Prokop6 commented 1 year ago

got a

# golang.org/x/sys/unix
src/golang.org/x/sys/unix/syscall.go:83:16: undefined: unsafe.Slice
src/golang.org/x/sys/unix/syscall_linux.go:2270:9: undefined: unsafe.Slice
src/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
src/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice

for step Step 2/4 : RUN go get github.com/cespare/reflex with golang v go version go1.18.8 linux/amd64

boecklim commented 6 months ago

I also get an error when running docker-compose up

------                                                                                                                                                                                                           
 > [2/3] RUN go get github.com/cespare/reflex:
#0 6.315 package golang.org/x/sys/unix: found packages unix (affinity_linux.go) and main (mkasm.go) in /go/src/golang.org/x/sys/unix
------
failed to solve: executor failed running [/bin/sh -c go get github.com/cespare/reflex]: exit code: 1

go version: go1.21.3 darwin/arm64