Live data from Hacker News

Asdf – An Extendable Version Manager

asdf-vm.com

11–20 of 100 posts

Re: Asdf – An Extendable Version Manager

#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?

Re: Asdf – An Extendable Version Manager

#12
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 :)

Re: Asdf – An Extendable Version Manager

#13
post #9

asdf makes my life so much easier seriously, it's amazing. Try it! I have a .tool-versions file in code repo that lists what I need for a project. elixir 1.2.3 erlang 1.2.3 nodejs 1.2.3 Whenever I `cd` into the folder, asdf automatically uses the right versions for me. I don't have to worry about anything. Razer sharp scalpel of a tool.

The only issue is (was?) that you need to preinstall these unless this has changed in the past year. When I integrated it with direnv [0], I made the missing ones autoinstall. [0]: https://direnv.net/

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

Re: Asdf – An Extendable Version Manager

#14

asdf makes my life so much easier seriously, it's amazing. Try it! I have a .tool-versions file in code repo that lists what I need for a project. elixir 1.2.3 erlang 1.2.3 nodejs 1.2.3 Whenever I `cd` into the folder, asdf automatically uses the right versions for me. I don't have to worry about anything. Razer sharp scalpel of a tool.

Couldn't agree more. asdf has made working across multiple computers and projects dead simple.

Re: Asdf – An Extendable Version Manager

#15

"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)

Re: Asdf – An Extendable Version Manager

#16
post #9

Earlier quoted context omitted.

The only issue is (was?) that you need to preinstall these unless this has changed in the past year. When I integrated it with direnv [0], I made the missing ones autoinstall. [0]: https://direnv.net/

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.

Re: Asdf – An Extendable Version Manager

#17

"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.

Do you have JS enabled? It does seem to be one of those pointlessly-JS SPAs. (Yes, I'm judging them for this choice.)

Re: Asdf – An Extendable Version Manager

#19
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.

Re: Asdf – An Extendable Version Manager

#20
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.
Post reply on HN