asdf-vm/asdf

Automatically warn/install versions on enter directory when mismatch with current

Open

#734 创建于 2020年6月4日

在 GitHub 查看
 (7 评论) (1 反应) (0 负责人)Go (23,759 star) (881 fork)batch import
enhancementhelp wantedproposal

描述

Is your feature request related to a problem?

I am frustrated when I enter a directory containing a tool-version that is not installed and thus not used by asdf, then I don't use the expected tools. I am not warned about the mismatch between required tool (defined in .tool-versions and the one in asdf current).

Given a directory with a .tool-versions When the user enters that directory or one of its children Then asdf warns and/ask for installation of the tools versions defined in .tool-versions

Describe the solution you'd like

I would like that asdf detects that the current tools are not the one defined in the .tool-versions and install them automatically (or ask for install).

Describe similar asdf features and why they are not sufficient

asdf correctly use the tools but it did not warn/install them automatically

Describe workarounds you've considered

A shell plugin could detect that the current tools and the one in .tool-versions (in the hierarchy) do not match. This plugin can warn the user that something is wrong and ask if it can install the tools.

Nvm (Node Version Manager) has some instructions to do it. This snippet will use or install (depending of the versions of node installed and declared).

Additional context

$ asdf version
v0.7.8-4a3e3d6

贡献者指南