News for hackers. Stuff that matters.
Re:Wasmer 2.0 by zzyzxd on Thursday June 17, 2021 @01:59PM (#27542458)
> Can't wait to try it? Go ahead!

> curl https://get.wasmer.io -sSfL | sh

No, thanks.

I looked at the docs and running this shell script from internet is the only mentioned installation method.

Then I took a look at the script, it only supports bash, zsh and fish and will try to inject stuff in my shell config, add a new executable directory, and download and run an executable without even verify file checksum

Re:Wasmer 2.0 by syrusakbary on Thursday June 17, 2021 @02:01PM (#27542491)
There are also more ways to install Wasmer!

You can use cargo (it will compile from source):

    cargo install wasmer-cli --features singlepass,cranelift
Or a package manager:

    brew install wasmer

You can check all available methods here. Hope this helps!

https://github.com/wasmerio/wasmer-install#install-via-packa...

Re:Wasmer 2.0 by zzyzxd on Thursday June 17, 2021 @02:27PM (#27542788)
I am sure there are many ways to install it securely. But why aren't any of them mentioned in the documentation? Besides searching the entire github organization, how can people discover these alternative installation methods?
Re:Wasmer 2.0 by syrusakbary on Thursday June 17, 2021 @02:41PM (#27542970)
We showcase them already on the main repo (see other installation options): https://github.com/wasmerio/wasmer#install

Do you think it will be useful to be showcased more prominently somewhere else?

Re:Wasmer 2.0 by zzyzxd on Thursday June 17, 2021 @09:04PM (#27546264)
Ah, I did miss this section when I was browsing the main repo, it is kinda difficult to spot, especially since the section is collapsed by default.

However, I was mainly talking about the documentation site, because documentation is always my first stop when exploring a new project. The README real estate on github is limited, but on the documentation site you have a whole page dedicated to describing how to install it, so I would love to see some installation methods there that are safer than blindly executing a random script from internet.