There was no versioning and the ‘master’ branch would represent a stable version of the package. Instead, go get would fetch all the sources by using their import paths and store them in $GOPATH/src. When Go was first introduced in 2009, it was not shipped with a package manager. Set GO111MODULE on a per-folder basis with direnvįirst off, let’s talk about GOPATH.Where are the sources of the dependencies with Go Modules.Remember that go get also updates your go.mod. The pitfall of go.mod being silently updated (Go 1.15 and below).Why was GO111MODULE everywhere? (Go 1.15 and below).Installing binaries with GO111MODULE=on go get is deprecated.Faster downloading of dependencies if you are using Git to fetch modules.Go install this short post, I will explain why GO111MODULE was introduced in Go 1.11, its caveats and interesting bits that you need to know when dealing with Go Modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |