Package Details: asdf-vm 0.8.0-1

Git Clone URL: https://aur.archlinux.org/asdf-vm.git (read-only, click to copy)
Package Base: asdf-vm
Description: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Upstream URL: https://asdf-vm.com
Licenses: MIT
Submitter: alecmev
Maintainer: alecmev
Last Packager: alecmev
Votes: 10
Popularity: 1.21
First Submitted: 2019-05-27 20:24
Last Updated: 2020-10-12 17:53

Pinned Comments

alecmev commented on 2020-02-10 11:56

As mentioned in post_install, please, follow the official instructions to make asdf-vm work, replacing $HOME/.asdf with /opt/asdf-vm.

The completions are already installed, just make sure your shell is configured to use them. That is, don't source completions/asdf.bash or fpath=(completions $fpath).

Thanks for bringing this up, @odelucca. This is worth highlighting in a pinned comment, installation logs are too noisy.

Latest Comments

1 2 Next › Last »

rbuchberger commented on 2021-01-27 18:24

@alecmev - yeah, I actually submitted a pull request about that. Sorry to clog up the comments here.

Looks like the 'add it to our CI' idea died in the crib. I've worked with github actions a bit, when I get time I'll look at putting together a pull request for them that automates updating the AUR. Otherwise, if you're tired of maintaining this package I'd be willing to take over.

alecmev commented on 2021-01-27 16:39

@rbuchberger These are valid concerns, but the right place to report them is upstream, IMO. I just maintain the PKGBUILD (and I don't even want to, haha).

rbuchberger commented on 2021-01-23 09:34

@alecmev - You're right, thanks! I've edited my previous comment to mention that.

I like to keep my home directory tidy and follow the XDG spec. Also as I said the docs don't mention $ASDF_DIR, or that it's possible to have the asdf scripts in one directory while keeping plugins in another. If you have to dig into the scripts themselves to work out their behavior, it's worth mentioning so the next person doesn't have to.

alecmev commented on 2021-01-21 19:56

@rbuchberger Out of the box, when $ASDF_DATA_DIR is unset, asdf defaults to $HOME/.asdf.

rbuchberger commented on 2021-01-21 15:51

I couldn't find this mentioned in the asdf-vm docs, but $ASDF_DIR sets where the asdf scripts are located, while $ASDF_DATA_DIR sets where plugins, installations, and shims are located. Both default to $HOME/.asdf; when using this package you should set $ASDF_DIR=/opt/asdf-vm.

If you would like to avoid cluttering your home directory, you can set $ASDF_DATA_DIR=$XDG_DATA_HOME/asdf. I suggest the following configuration:

if [ -f /opt/asdf-vm/asdf.sh ]; then
  export ASDF_DIR=/opt/asdf-vm
  export ASDF_CONFIG_FILE=$XDG_CONFIG_HOME/asdf/asdfrc
  export ASDF_DATA_DIR=$XDG_DATA_HOME/asdf
  source $ASDF_DIR/asdf.sh

  # Insert autocompletion setup for your shell here.
fi

alecmev commented on 2021-01-12 19:03

@axolx Why /opt/asdf-vm/lib/asdf.sh? The instructions reference $HOME/.asdf/asdf.sh, which translates into /opt/asdf-vm/asdf.sh, no lib.

axolx commented on 2021-01-11 04:58

After installing asdv-vm (0.8.0-1) following the instructions in post_install, running the asdf shell function fails as follows:

$ asdf
bash: asdf: command not found

I believe it's because the eval statement on line 12 in /opt/asdf-vm/lib/asdf.sh fails to find /opt/asdf-vm/bin/asdf unless /opt/asdf-vm/bin is in the PATH environment variable:

eval "$(asdf export-shell-version sh "$@")" # asdf_all

Are the instructions missing a step to include /opt/asdf-vm/bin in the PATH environment variable?

alecmev commented on 2020-10-12 18:12

@ruy16109 Thanks for notifying, I've updated the link, though it isn't 100% accurate, things will get better when this is merged.

Checking the built package I noticed that a lot of files are placed in /opt. What is the rationale for that?

There's no better way at the moment.

I don't think I can use asdf unless I source the file /opt/asdf-vm/asdf.fish

I've tested again, and it works fine without extra configuration. Just run fish, type asdf and press Tab.

ruy16109 commented on 2020-10-12 17:40

The link shared by @alecmev is now a dead link.

Checking the built package I noticed that a lot of files are placed in /opt. What is the rationale for that?

As for using asdf-vm under fish, since I am unable to refer to the website, I don't think I can use asdf unless I source the file /opt/asdf-vm/asdf.fish.

alecmev commented on 2020-10-06 10:11

@itsbenji That shouldn't be necessary, I remember testing Fish and the completions worked fine with a vanilla config. As per the docs, it's enough to put them in /usr/share/fish/vendor_completions.d, as already done in the PKGBUILD. Could there be an issue in your config?