4 ms·
Makefiles, build: docker build Ugh, more Linux-Only. Don't follow this please. (This isn't necessarily aimed only at blog post, but guys and gals there are ot
by howeyc 11y ago
Makefiles, build: docker build
Ugh, more Linux-Only. Don't follow this please.
(This isn't necessarily aimed only at blog post, but guys and gals there are other OSs supported by Go than Linux/OSX. Most of the time just having "go get" work is enough. Trust me, I've done it a lot as an outlier. I use FreeBSD and Windows.)
What's wrong with using something like party[1], or nut[2]? Or just vendoring in a way that go build still works. Seriously, what's wrong with more source files in your project's source repository?
This way I can go get your command (package main).
I dunno, maybe I'm just grumpy.
[1] https://github.com/jingweno/nut https://github.com/jingweno/nut
[2] https://github.com/mjibson/party https://github.com/mjibson/party
- vezzy-fnord 11y agoGNU make is cross-platform. It's often aliased to "gmake" in Unix-likes that have their own variants of it which predate GNU as the default. True on Docker, though.
- vhost- 11y agoWhat? GNU make works everywhere. I've used it on Window, OS X, every Linux distro I've touched and all the BSDs
- howeyc 11y agoYes, I know about GNU make. The point is not GNU make, the point is needing to find out how to install third-party program on my OS of choice to build an app that should be as easy as "go build" because of the Programming Language used. Maybe once that new fancy OneGet is on Windows (and maybe even becomes as good as brew looks on OSX, which I've never used) it will no longer bother me.
- skj 11y agoTake a look at https://github.com/skelterjohn/wgo https://github.com/skelterjohn/wgo - it's vendoring in a way that 'go build' (and 'go get') still work :)
- 0x74696d 11y ago> Makefiles, build: docker build Ugh, more Linux-Only. Don't follow this please. Meh. I get your sentiment here, but I build and deploy on Linux and I post about the stuff I work on. I don't post about the Windows stuff that I haven't worked on in years. And I assume a level of intelligence in my readers that they can translate whatever might be generally applicable into their own platform in the same sense that I don't grumble about Raymond Chen's `Old New Thing` not being directly applicable to my own work but still enjoy it.