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

オープン
#814 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Detoy がすでに取り組んでいます。

2026年11月22日 から。

  • #820 @Detoy による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, lua
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
4k
フォーク
177
平均マージ
1日 20時間
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

version-fox/vfox のほかの issue

version-fox/vfox の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。