[Feature]: treat two names of one install as the same version

Open
#814 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Detoy is already working on this.

Since Nov 22, 2026.

  • #820 by @Detoy — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go, lua
Domain
cli

Research direction

Start from the vfox install path and the plugin interface that calls PreInstall, since the issue says the install flow checks exact names both before and after that hook. Read the handling of --as (#807) for the existing name-vs-copy distinction, then choose between passing installed names into PreInstall or letting it return aliases. Done means vfox install [email protected] followed by vfox install [email protected] reports already installed rather than downloading again, with a regression test for the canonical-name check.

Written by the indexing model from the issue text.

Description

enhancement
1. Your usage scenarios?

vfox checks whether a version is already installed by its exact name, both before and after PreInstall. A plugin can return a canonical name from PreInstall, and vfox checks that name again before it downloads. That works well. But PreInstall gets only the requested version, not the list of installed versions, so a plugin cannot map a new name to an install that was made under an older name.

Example, from the Erlang/OTP plugin (version-fox/vfox-erlang): on Linux, its prebuilt list showed OTP-29.1.2, so installs were named OTP-29.1.2. The plugin is changing to name the same build 29.1.2. After vfox install [email protected], running vfox install [email protected] downloads the build again and creates a second install.

This is different from vfox install --as (#807), which is for a second copy on purpose. Here the two names are one release, and one install is wanted.

2. What is your expected outcome?

Either of these:

  1. Pass the names of the installed versions to PreInstall, so a plugin can return a name that is already installed, and vfox reports already installed.
  2. Let PreInstall return alternative names for the same install, for example aliases = {"OTP-29.1.2"}, and check them the same way as the canonical name.

Related: #664 (plugins providing paths into the cache).

Environment: vfox 1.1.0 on Ubuntu 26.04. On main (after #807), the install flow still checks exact names before and after PreInstall, and PreInstall still gets only the version.

Dominant language
Go
Stars
4k
Forks
177
Avg merge
1d 20h
Merged PRs (30d)
31

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from version-fox/vfox

All issues in version-fox/vfox

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.