Track vfox-erlang#33 until a vfox release fixes the search cache

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

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
22/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, markdown

調査の方向性

This is a tracking issue: nothing can be edited until a released vfox contains vfox#817, so the first step is checking the checklist, not the code. When it unblocks, start with mygo/core/profile/erlang.go (the English and Chinese search-cache tip), then the Erlang sentence in docs/en/user/using.md and docs/zh-CN/user/using.md, then the cache wording in docs/*/dev/vfox-cli-contract.md and the SearchVersions comment in mygo/core/vfox/cli.go. Done means those workaround texts are gone and the prebuilt/search behaviour is confirmed against a released vfox, not main. Open a newcomer-friendly issue only once the upstream fix ships.

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

説明

bug help wanted

vfox-erlang#33 is still open. This issue tracks it until both of its parts are fixed in released versions, and the workarounds in vfox-plus can be removed.

vfox-erlang#33 is about USE_PREBUILT_OTP, in two parts:

  • Install: fixed. The value is checked before the version list is read, so an invalid value gets one message that names the supported values. This is in vfox-erlang 1.2.3, released on 2026-11-22.
  • Search: open. With a warm vfox search cache, vfox search erlang lists the cached releases for any value of the variable, and it accepts an invalid value. The plugin cannot fix this, because vfox returns a cached Available result without calling the hook.

The vfox side is vfox#816, which is open. Its fix is vfox#817: it is not merged, and it has changes requested. The latest vfox release is 1.1.0, and vfox main at 90a96e1 does not have the fix.

Checked on 2026-11-22 with vfox 1.1.0 on Linux x86-64 and vfox-erlang 1.2.3. After a plain vfox search erlang has filled the cache, USE_PREBUILT_OTP=ubuntu-24.04 vfox search erlang prints the same output as the plain search: the source list, 546 lines. A cold search with the same variable prints the prebuilt list, 179 lines.

Checklist

  • vfox-erlang#33, install part: fixed in vfox-erlang 1.2.3.
  • vfox#817 is merged, and a released vfox version contains it.
  • With that release, a search after a plain search prints the prebuilt list for USE_PREBUILT_OTP=ubuntu-24.04, the same as a cold search, and USE_PREBUILT_OTP=true is refused.
  • vfox-erlang's docs/prebuilt.md and docs/troubleshooting.md no longer tell users to turn the search cache off.
  • vfox-erlang#33 is closed.

Check a box when a released version of vfox contains the fix. Confirm the fix with that release, not with main.

When an item is fixed, update vfox-plus to match

  • mygo/core/profile/erlang.go: remove the search-cache tip, in English and Chinese. It says the cache does not depend on USE_PREBUILT_OTP, and it tells users to turn the cache off.
  • docs/en/user/using.md and docs/zh-CN/user/using.md: remove the sentence in the Erlang section that tells users to turn the search cache off before they use prebuilt releases.
  • docs/en/dev/vfox-cli-contract.md and docs/zh-CN/dev/vfox-cli-contract.md: the sentences that say vfox keeps a search answer per list of arguments whatever the environment says, so a changed mirror shows only after the cache expires. After the fix, that holds only for a hook that reads no environment variable, so rewrite them.
  • mygo/core/vfox/cli.go, the comment on SearchVersions: it says vfox keeps one answer per list of arguments. Update it the same way.
主要言語
Go
スター
1
フォーク
0
平均マージ
12時間 4分
マージ済み PR(30日)
28

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

version-fox/vfox-plus のほかの issue

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

似ている issue

Go の issue をもっと見る

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

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