← Back to context

Comment by _sinelaw_

7 days ago

I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.

i don’t (and won’t) have npm installed. i do have cargo.

strange thinking!

  • I would bet 100 Euro there is at least an order of magnitude, if not two or three, more installs of NPM clients than Cargo right now.

  • Then use: cargo install fresh-editor

    I've documented that as well it just isn't the first option listed

I've been wanting a generic package manager for a while that is cross-platform. I wonder how one could find funding for such a project. Thinking about users from various OS' installing tools and software from your niche package manager, yeah that bad boy is going to grind to a halt if you have no key funding.

  • Same. I started writing one as a weekend project and got as far as having a GH repo with releases that mirror the binaries of the tools that I use, normalizing the archives so they can be installed in the same way. It auto-generates a release whenever the project authors update their projects.

    https://github.com/alshdavid/install-scripts/releases?q=node...

    https://github.com/alshdavid/install-scripts/releases

    All of the binaries here are expected to be standalone/portable installations, so you can download/extract the archive and just run the binary.

        curl -L --url https://github.com/alshdavid/install-scripts/releases/download/terraform-1.14.1/terraform-1.14.1-linux-amd64.tar.gz | tar -xvzf - -C $HOME/.local/bin
        $HOME/.local/bin/terraform --help
    
    

    I haven't yet written a package manager yet, but I was planning for it to just do the same thing as above but figure out your OS/ARCH, handle extraction and also offer a PATH update system so you can run `eval $(xpkg env)` and PATH is updated automatically.

  • By cross-platform, do you really mean Linux/BSD/Mac/Win/ChromeOS/Android?

    Or do you just mean something like Guix?