quii / learn-go-with-tests

Learn Go with test-driven development
MIT License
22.03k stars 2.79k forks source link

specify go version in Dockerfile #747

Closed UponTheSky closed 6 months ago

UponTheSky commented 6 months ago

While reading Scaling acceptance tests, I tried building a docker image using the Dockerfile as the one in the book and failed to do so.

Then I realized I was using Go version >= 1.22.0 on my machine and that was the main problem.

Although I don't think it would be a good idea to change the Go version used in the book(because everyone has her/his own favorite Go version), I think at least it would be good to mention it so that a reader could modify her/his own Dockerfile with the Go version installed on her/his machine.