Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] One-line binary install improvement #1604

Closed
thernstig opened this issue Apr 2, 2021 · 3 comments
Closed

[Feature] One-line binary install improvement #1604

thernstig opened this issue Apr 2, 2021 · 3 comments
Labels
feature-request New feature or request

Comments

@thernstig
Copy link

I have a plethora of great statically linked binary installs in Linux (Ubuntu). These include ripgrep, exa, bat, fd etc. None shines as well as chezmoi when it comes to the one-line installer.

I recommend to re-implement the one-line binary installer to follow that of chezmoi. See this documentation: https://github.com/twpayne/chezmoi/blob/master/docs/INSTALL.md#one-line-binary-install

In effect, what it does, is to download the latest statically linked binary for your operating system and architecture into ./bin
This means I can put myself in whatever dir I want and just call the installer and it will be installed into the bin path of my choosing. Be that ~/bin or .local/bin or whatever I prefer.

@thernstig thernstig added the feature-request New feature or request label Apr 2, 2021
@SuperSandro2000
Copy link

SuperSandro2000 commented Apr 2, 2021

or you just use the nix package manager with nix-env -iA bat.

note: I am a very active nix contributor :P

Edit: Also nix can manage your dotfiles with home-manager.

@thernstig
Copy link
Author

thernstig commented Apr 3, 2021

I'd prefer not to use nix-env but thanks for the pointer :) In every project I am in that are statically linked the majority either recommends to use a package manager (apt etc.) or sometimes like here to download it via the release package and run sudo dpkg (in my Ubuntu case). I setup lots of tools, on lots of various hosts quite often (containers, VMs etc.). It takes time to do this as all have different instructions. Having a one-line installer that just works for any architecture and operating system is golden. I have started to realize just have well chezmoi have done this, and feel all statical libraries should have one like this 😄

@SuperSandro2000
Copy link

sometimes like here to download it via the release package and run sudo dpkg (in my Ubuntu case).

You should use apt install ./file.deb to fetch dependencies.

Having a one-line installer that just works for any architecture and operating system is golden.

Nix should work on the 3 popular linux arches and darwin but it is a bit broken on bsd and other more niche linuxes.

@sharkdp sharkdp closed this as completed May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants