logoalt Hacker News

lgtxtoday at 4:50 PM5 repliesview on HN

The installation instructions being a `curl | sh` writing to the user's bashrc does not inspire confidence.


Replies

maccardtoday at 6:36 PM

Given you're about to run a binary, it's no worse than that.

show 1 reply
ori_btoday at 4:52 PM

They did say it was inspired by cargo, which is often installed using rustup as such:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
bikelangtoday at 5:27 PM

I don’t love this approach either (what a security nightmare…) - but it is easy to do for users and developers alike. Having to juggle a bunch of apt-like repositories for different distros is a huge time sink and adds a bunch of build complexity. Brew is annoying with its formulae vs tap vs cask vs cellar - and the associated ruby scripting… And then there’s windows - ugh.

I wish there was a dead simple installer TUI that had a common API specification so that you could host your installer spec on your.domain.com/install.json - point this TUI at it and it would understand the fine grained permissions required, handle required binary signature validation, manifest/sbom validation, give the user freedom to customize where/how things were installed, etc.

ueckertoday at 5:24 PM

This is fitting for something simulating cargo, which is a huge supply chain risk itself.

jjgreentoday at 4:52 PM

[flagged]

show 1 reply