top | item 31926148

(no title)

bow_ | 3 years ago

It's neat ~ could have used checks in-between to ensure e.g. `$(go env GOBIN)` is not empty.

For something more comprehensive (of course with a larger install size) and the possibility of handling not just Go, I have had good experiences with asdf [1].

[1] https://asdf-vm.com/

discuss

order

SPascareli13|3 years ago

I use ASDF and it's very good to manage versions, specially if you have multiple projects with different versions of go or node, for example.

You don't even need to manually switch, you can set a version per folder!

Of course, the thing about bash scripts is that they are super specialized to do one thing, that usually only really works for the creator's workflow.

anomalroil|3 years ago

Everybody keeps telling me about asdf, but I haven't yet come around to using it. I like to have manual control over my packages, but I guess I should really give it a try one day.