Last active
April 13, 2020 10:23
-
-
Save costa/5718a5799d425ab90c6dc8915c4202fa to your computer and use it in GitHub Desktop.
Golang Module dependencies update with Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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