3 ms·
Your code only builds static libraries Therefore, all projects in Go are doomed to fail. Somehow, I think not!
by stcredzero 11y ago
Your code only builds static libraries
Therefore, all projects in Go are doomed to fail. Somehow, I think not!
- codemac 11y agoGo makes you depend on the source code of a library you're depending on, not any build result. Because Go by default does not generate shared libraries to ship, they work around this by having every user of a library recompile it into their project. They avoid compiler mismatch issues by doing this. So no significant open source Go library provides static libraries to their consumers. They provide source code. I think this list holds up very well, but there are several go projects that have had serious impediments due to things on this list. The obvious example being the bane of my existence - the $GOPATH. The amount of effort Go projects have to put into getting some half-assed version of `make dist` to ship a tgz is depressing.
- stcredzero 11y agoQuite informative! Thanks.