2 ms·
> Build commands like go build and go test no longer modify go.mod and go.sum by default. > go install now accepts arguments with version suffixes > The go mo
by barosl 6y ago
> Build commands like go build and go test no longer modify go.mod and go.sum by default.
> go install now accepts arguments with version suffixes
> The go mod vendor and go mod tidy subcommands now accept the -e flag, which instructs them to proceed despite errors in resolving missing packages.
Do these mean I can finally reliably build the dependencies beforehand, to better utilize Docker layer cache, using this hack?[1][2]
[1] https://github.com/montanaflynn/golang-docker-cache https://github.com/montanaflynn/golang-docker-cache
[2] https://github.com/golang/go/issues/27719 https://github.com/golang/go/issues/27719