8000 Reinstall default packages on demand · Issue #1780 · asdf-vm/asdf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Reinstall default packages on demand #1780
@ivuorinen

Description

@ivuorinen

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0