devops-works / binenv

One binary to rule them all. Manage all those pesky binaries (kubectl, helm, terraform, ...) easily.
MIT License
373 stars 44 forks source link

How correct add https://github.com/deref/exo? #149

Closed patsevanton closed 2 years ago

patsevanton commented 2 years ago

Hello! How correct add https://github.com/deref/exo? Same name by https://github.com/exoscale/cli

leucos commented 2 years ago

Hello @patsevanton

I guess we will have to implement some kind of "name remapping" for binaries to avoid collisions.

We can discuss this here and see how to tackle the problem.

May be we could take this opportunity to rethink the way binaries are installed and add theability to install several binaries. binenv can not do this at the moment and this forces us to duplicate definitions in distributions (I do not have an example from the top of my head but we had to do this once or twice).

patsevanton commented 2 years ago

May add text "Warning. Name duplicate with https://github.com/exoscale/cli" ?

leucos commented 2 years ago

About deref/exo, we can add the following entry in the distributions file:

  derefexo:
    description: A process manager & log viewer for dev
    list:
      type: github-releases
      url: https://api.github.com/repos/deref/exo/releases
    fetch:
      url: https://github.com/deref/exo/releases/download/v{{ .Version }}/exo-{{ .Version }}-{{ .OS }}-{{ .Arch }}
    install:
      type: direct
    post_install_message: "Warning: the binary will be named 'derefexo' and not 'exo'"

The final binary would be named "derefexo". Would that be ok ?