Live data from Hacker News

Asdf – An Extendable Version Manager

asdf-vm.com

31–40 of 100 posts

Re: Asdf – An Extendable Version Manager

#31

Earlier quoted context omitted.

Correct, you must have them installed so the `cd` into the directory auto switches. But that's a simple `asdf install elixir 1.2.3` boom you're set

Or just `asdf install` - it will handle all the missing versions.

Yeah, that's what the direnv script was doing. You cd and forget!™

Re: Asdf – An Extendable Version Manager

#32
post #25
post #7

I've been using it and has contributed to it, but I wish it supported out of the box GitHub-based release binaries as 90% of my code for different vendors was relatively the same, so, instead of having multiple identical repositories, I created one, which uses introspection [0]. I wish this was available out of the box to handle literary 90% of the tools. Also, I typically pair it with direnv [1] for even more magic.…

Thank you for asdf-hashicorp. We use it at HashiCorp.

You're welcome!

Re: Asdf – An Extendable Version Manager

#33
post #7

I've been using it and has contributed to it, but I wish it supported out of the box GitHub-based release binaries as 90% of my code for different vendors was relatively the same, so, instead of having multiple identical repositories, I created one, which uses introspection [0]. I wish this was available out of the box to handle literary 90% of the tools. Also, I typically pair it with direnv [1] for even more magic.…

Thank you for asdf-hashicorp. We use it at Skillshare.

Thank you! It's nothing special.

Re: Asdf – An Extendable Version Manager

#34
post #7

I've been using it and has contributed to it, but I wish it supported out of the box GitHub-based release binaries as 90% of my code for different vendors was relatively the same, so, instead of having multiple identical repositories, I created one, which uses introspection [0]. I wish this was available out of the box to handle literary 90% of the tools. Also, I typically pair it with direnv [1] for even more magic.…

Thanks for sharing direnv, I didn’t know about that but I’ve wished for it before. Great find :)

It's a gem, really.

Re: Asdf – An Extendable Version Manager

#35
post #3

I've been using it since 2017 for an Elixir/Phoenix backend, React frontend and PostgreSQL database. It works very well and spares me from having to use three language managers (one for Elixir, one for Erlang and one for JS) plus a docker container for PostgreSQL. I was pleasantly surprised that it manages the database too.

My install of asdf at some point broke so badly, I could not get anything to run. I wish I remembered the exact trouble, but it was bad enough that I just un-installed it in favor of `nvm` for node versioning, and never looked back.

n is still the simplest node version manager I've come across [0]. Maybe worth checking out if you're looking for an alternative.

I also use the companion n-install [1] utility to get setup very quickly.

[0] https://github.com/tj/n

[1] https://github.com/mklement0/n-install

Re: Asdf – An Extendable Version Manager

#36

Smart that it’s based on rbenv and the many spin-offs (pyenv, nodenv etc). The name is off putting to me though, because it’s meaningless. Maybe I could alias it to something like xenv and pretend it didn’t bother me.

No way! asdf is full of vast meaning. :) http://asdf.com/whatisasdf.html

Re: Asdf – An Extendable Version Manager

#37
post #7

I've been using it and has contributed to it, but I wish it supported out of the box GitHub-based release binaries as 90% of my code for different vendors was relatively the same, so, instead of having multiple identical repositories, I created one, which uses introspection [0]. I wish this was available out of the box to handle literary 90% of the tools. Also, I typically pair it with direnv [1] for even more magic.…

Direnv/asdf is crazy fantastic. I was afraid asdf and direnv would fall into the venv/conda hell that is python, but it. Just. Isn't.

Re: Asdf – An Extendable Version Manager

#38

"Please head over the documentation site" is a link back to the site. The ballad links to an old repo (fortunately Github redirects it) The all-plugins page 404's. After giving up on the website I look at the code. It's a shell script. Wonderful. I'll stick with Nix any day. Or maybe conda.

Are you browsing with JS turned off? (The page does some JS tricks)

Indeed, JS was off as it usually is.

Re: Asdf – An Extendable Version Manager

#40
post #11
post #3

I've been using it since 2017 for an Elixir/Phoenix backend, React frontend and PostgreSQL database. It works very well and spares me from having to use three language managers (one for Elixir, one for Erlang and one for JS) plus a docker container for PostgreSQL. I was pleasantly surprised that it manages the database too.

Mind elaborating on how it manages the database? That sounds useful! Does it install and run the db for you or something?

Sibling answers link to the plugin with the details.

The general idea is that it installs the binaries and the data into a subdirectory of ~/.asdf, then sets PATH and the other environment variables to point to there. Then pg_ctl start starts the database.

Each project has its own .tool_versions file so you can have different versions of the same database running in parallel. I was doing that with docker containers but this is easier.

Post reply on HN