Skip to content

Instantly share code, notes, and snippets.

@costa
Last active April 13, 2020 10:23
Show Gist options
  • Save costa/5718a5799d425ab90c6dc8915c4202fa to your computer and use it in GitHub Desktop.
Save costa/5718a5799d425ab90c6dc8915c4202fa to your computer and use it in GitHub Desktop.
Golang Module dependencies update with Docker
GOLANG_VERSION=1.14
docker run -v $(pwd)/go.mod:/b/go.mod -v $(pwd)/go.sum:/b/go.sum -w /build golang:$GOLANG_VERSION bash -c 'cp -a /b/go.mod /build/ && go mod downloa
d && cp -a /build/go.sum /b/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment