Home > other > [white] after using the Go after the module, Go build and Go install what is the difference? How to
[white] after using the Go after the module, Go build and Go install what is the difference? How to
Time:09-18
After using the Go after the module, in addition to the generated exe position is not the same as the Go build and Go and what is the difference between the install? On the go when the path go install -i will be generated in the PKG. A file, but the use of the go go after the module install - I don't seem to be generated. A, is this why?
CodePudding user response:
I think may be related to rely on the package management way, Don't have to go the module (or go dep), rely on the package to oneself use go get downloaded to the local, and go the mod is to rely on download package to a temporary folder (PKG/mod), vendor go dep is downloaded to the current folder, use the go install -i, these depend on the source code package doesn't really exist go under the SRC path, so can't generate the same directory as the SRC structure in PKG, so also can't in the same directory to generate a PKG (generated a estimate is also in a temporary folder)