Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Install something else" is ... a nice idea?

But it's simply not realistic.

Examples:

- Embedded devices that may or may not have an internet connection

- Government classified networks that aren't allowed to grab ANY random software off of the internet

- Simply not wanting to add another dependency to an operation.

I'm a former Lua fan. I've ... written it off at this point. [1]

Honestly if I were to take the approach you describe, I'd likely instead have the shell script only look at the architecture and then choose one of 2-3 precompiled Go binaries. Talk about simple and fast...and the binaries could be hosted behind a firewall somewhere.

Or maybe I was thinking of it wrong. Just embed the various Go binaries into a tar file embedded right in the shell script[2], and choose the right one based on architecture. Done. :)

[1] https://realmensch.org/2016/05/28/goodbye-lua/

[2] https://www.xmodulo.com/embed-binary-file-bash-script.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: