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

Getting alire installed involves downloading the zip, extracting the binary, and moving the binary to a directory in $PATH. If you're on a mac, you also have to run an "xattr" command on the tool to get it running.

I've seen the last parts get newcomers tripped up so Getada takes the rustup approach.

It uses github's api to retrieve the latest published release of alire[1] and then downloads and extracts it to a specified directory in $HOME. Then it creates an env file[2] and sources that file in .profile and/or .zshenv. It also logs everything that it does so it can undo it later with getada --uninstall

[1] https://github.com/alire-project/alire/releases

[2] Here's roughly what the env file looks like that it creates https://github.com/AJ-Ianozi/getada/blob/main/src/shells.adb...



> Getting alire installed involves downloading the zip, extracting the binary, and moving the binary to a directory in $PATH. If you're on a mac, you also have to run an "xattr" command on the tool to get it running.

Is that considered a high bar for software developers to get right?


In practice, yes.


We're doomed.


yeah, g-d forbid that any routine busywork gets automated by software, otherwise all those lines of code might actually have a point!


That is literally a bash oneliner - pipe curl into tar, and have it unpack to ~/.local/bin.


Shouldn't a good package manager just take care of those steps?


That is literally a bash oneliner - pipe curl into tar, and have it unpack to ~/.local/bin.




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

Search: