Comment on It's me again. My Kubernetes devolver has reached the astral plane.
androidul@lemmy.world 15 hours agonot only, you can go ahead and run a Go program as is, without compiling as well 😆
TIL about the one file, 10x for sharing, can you guarantee that runs everywhere?
moonpiedumplings@programming.dev 14 hours ago
go runworks by compiling the program to a temporary executable and then executing that.It seems to depend on glibc versions, if that’s what you are asking. You can force it to be more static by using a static musl python or via other tools. Of course, a binary for Linux only runs on Linux and the same for Windows and Mac. But yeah.
Also it should be noted that go binaries that use C library dependencies are not truly standalone, often depending on glibc in similar ways. Of course, same as pyinstaller, you can use musl to make it more static.