Re:Golang: Don't be afraid of makefiles
by insertnickname on Wednesday September 20, 2017 @11:52AM
(#15295130)
Just because you have a Makefile in your repository, it doesn't mean the package(s) aren't `go get`-able. As long as the package can be built with `go install`/`go build` it should be fine.
[ Parent
| on HN ]
Re:Golang: Don't be afraid of makefiles
by jerf on Wednesday September 20, 2017 @12:05PM
(#15295291)
And there are cases where it is simply impossible for the package to be installed simply with "go get" or "go install". C'est la vie. The idea is not to unnecessarily introduce dependencies on things like make, not that you can remove the necessary dependencies on external tools.
Re:Golang: Don't be afraid of makefiles
by tptacek on Wednesday September 20, 2017 @12:05PM
(#15295293)
Right, but then the value of the Makefile is pretty marginal.
Re:Golang: Don't be afraid of makefiles
by jeffinhat on Wednesday September 20, 2017 @12:18PM
(#15295469)
The value of the Makefile is for automating repetitive dev tasks. Consumers of a golang CLI should use `go get` but this makes it easier for contributors who run tests, cut releases, ..
The authors example is clean/simple. Here's an example not so clean/simple example where we needed to do more complex stuff like build for all target platforms[1].
[1] https://github.com/cloudfoundry-community/stackdriver-tools/...