[Feature]: treat two names of one install as the same version
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
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 の本文から書いたものです。
説明
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:
- Pass the names of the installed versions to
PreInstall, so a plugin can return a name that is already installed, and vfox reportsalready installed. - Let
PreInstallreturn alternative names for the same install, for examplealiases = {"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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
version-fox/vfox のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
version-fox/vfox#825 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
version-fox/vfox#823 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 45/100
version-fox/vfox#824 ·
メンテナーはふだん 1 日以内に返信
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)対応中かも @Xnadir が今日担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
version-fox/vfox#821 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for another対応中かも @nanami7777777 が今日担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
version-fox/vfox#816 ·
メンテナーはふだん 1 日以内に返信
version-fox/vfox の issue をすべて見る
似ている issue
-
go good first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
[UI] Guard webApis against undefined window in SSR environments対応中かも @madhavzanwar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
automated-analysis code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
github/gh-aw-mcpg#17105 ·
メンテナーはふだん 1 日以内に返信