Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstall default packages on demand #1780

Open
ivuorinen opened this issue Sep 18, 2024 · 0 comments
Open

Reinstall default packages on demand #1780

ivuorinen opened this issue Sep 18, 2024 · 0 comments

Comments

@ivuorinen
Copy link

Is your feature request related to a problem? Please describe

I have my exports set like this:

export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages"
export ASDF_GEM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/gem-packages"
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/golang-packages"
export ASDF_NPM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/npm-packages"
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/python-packages"

But after modifying those files, there doesn't seem to be a way to rerun the default package installation task.

Describe the proposed solution

As well behaving plugins should, the format of the default packages is defined as ASDF_[plugin name]_DEFAULT_PACKAGES_FILE, but with caveats.
For example rust plugin has named their env as ASDF_CRATE_DEFAULT_PACKAGES_FILE, ruby has chosen ASDF_GEM_DEFAULT_PACKAGES_FILE, etc. so using plugin name and piping the file to the correct installer can't be done.

In an ideal solution the plugin template would have a script install-default-packages, like it has for install, list-all, etc. that would handle the job of running install for the default packages.

Describe similar asdf features and why they are not sufficient

The installation of default plugins is already there, it's just not possible to re-trigger it.

Describe other workarounds you've considered

Only way we can at the moment trigger the installation is to remove the version and reinstall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant