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

go test doesn't work on rpi images #699

Open
panbanda opened this issue Jun 6, 2021 · 0 comments
Open

go test doesn't work on rpi images #699

panbanda opened this issue Jun 6, 2021 · 0 comments

Comments

@panbanda
Copy link

panbanda commented Jun 6, 2021

When I try and run my tests on docker they fail due to some configuration in the image itself. The same code works just fine with using another docker image like golang:latest. I can also replace it with go run file.go and it works. The go test command just hangs with no response.

Using a very simple setup of Docker like so (doesn't work):

FROM balenalib/raspberry-pi-debian-golang:latest

WORKDIR /go/src/app

COPY . .
RUN go mod download

CMD ["go", "test", "./..."]

Does work:

FROM golang:latest

WORKDIR /go/src/app

COPY . .
RUN go mod download

CMD ["go", "test", "./..."]

This goes for any of the raspberry-pi* images like buster, debian, etc.

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