Closed shukra-in-spirit closed 2 years ago
@vancanhuit, See sample Makefile here: https://github.com/haani-niyaz/golang-template-repository/blob/add-makefile/Makefile
Thanks for sharing @haani-niyaz. I have some thoughts:
go mod tidy
also downloads all dependencies so I think we don't need go mod download
.test-build
at all. Just run build
is enough to see if it can be built.hey @vancanhuit, feel free to take what is needed. The original use cases for having them were:
make test-build
: Tests compilation and keeps the working directory clean
make download
: Used within a Dockerfile to create a caching layer for the dependency modules