devops-works / binenv

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

feat: Look at env.var to guess dist version to use #182

Closed semoac closed 2 years ago

semoac commented 2 years ago

To facilitate the creation of reusable packages in pipelines, I am looking to replace the use of multiple .binenv.lock files to define binary versions for environment variables.

As an example, to manage Kubernetes clusters of very different versions it is necessary to use different versions of tools such as kubectl, helm or kapp. By being able to define this through an environment variable, it is possible to create parameterized pipelines jobs in an easier way.

I look forward to reading comments on the proposed change.

Cheers

leucos commented 2 years ago

Thanks for the proposal @semoac . I am looking into it. Since you're the second person to ask for this, I guess there is a use case here.

If you could document this in the README, that would be awesome.

semoac commented 2 years ago

Thank you for reviewing this proposal.

leucos commented 2 years ago

Thanks a lot @semoac :pray: . I will release this asap.

leucos commented 2 years ago

Released in v0.17.0

binenv update -f binenv && binenv install binenv

enjoy