logoalt Hacker News

fc417fc802yesterday at 3:28 PM5 repliesview on HN

> As an VSCode extension author, I am always terrified by the amount of power I have.

Meanwhile random FOSS projects be like "please sudo curl bash to install the prebuilt binaries".


Replies

godelskiyesterday at 3:55 PM

Most don't even use functions when writing those scripts and it can straight up fuck your system on accident. It's very unlikely but it can happen and a malicious actor can trigger it on purpose.

But this is true about lots of code. We have this notion of "it works, therefore there's no problem" which is just bad engineering. Just because you don't know there's a problem doesn't mean there isn't. Just because it passes the tests doesn't mean you have test coverage.

shermantanktopyesterday at 3:54 PM

How did that even get started? It’s not like downloading a zip or tar file is so terribly taxing.

show 1 reply
dirkcyesterday at 4:04 PM

This is one of my pet peeves! No one should normalize the idea of piping curl output to bash.

show 1 reply
g947oyesterday at 3:52 PM

I agree. Sadly most of us aren't going to build from source, and some tools don't really work without sudo. (Did I mention VSCode? On Linux you get a .deb file. Yeah.)

show 1 reply
knowitnone3yesterday at 5:34 PM

[dead]