4 ms·
Even the most ardent of Go-haters have to be fair and admit it makes cross-compilation really nice. GOOS=linux GOARCH=amd64 go build && scp executable user
by thrwaway1985882 2y ago
Even the most ardent of Go-haters have to be fair and admit it makes cross-compilation really nice.
GOOS=linux GOARCH=amd64 go build && scp executable user@host:direc/tory/
Out of the box, no toolchains to manage.
- theshrike79 2y agoThis is pretty much what I do. I have a Taskfile for local compilation and running (macOS) and when I need to release I can just say `task publish` and it'll cross-compile a Linux binary and copy it to my server.
- bb88 2y agoSure, it's nice in that regard. But honestly running poetry install for python is not bad either.
- theshrike79 2y agoExcept in 3 years when poetry is bad for some reason and now there's a new better(?) tool again :D