Vendoring dependencies

Vendoring is also a popular choice for improving build consistency and quality. Within the project structure, the authors of the language were receptive to the feedback of keeping support for vendoring dependencies. Keeping your dependencies within your repository makes it very large, but it can help with keeping third party dependencies available locally during build time. When we are using Go version 1.11 or greater, we can use Go modules flagging to allow vendored builds. We can use go mod vendor to capture all of the dependencies in the vendor/ directory, followed by using go build -mod vendor at build time. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.135.80