Reject malformed compiler version tokens in doctor and version queries
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with compiler/src/selection.rs:84, where Compiler::version() validates the wavec response and caches the second token. Add or update the version fixtures to cover malformed, missing, wrong-prefix, valid-prerelease, and supported trailing-description cases, then exercise vex doctor --format=json outside a project. Done means malformed output produces a failed compiler check, while valid development versions continue to report successfully.
索引モデルが issue の本文から書いたものです。
説明
Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).
Problem and reproduction
Compiler::version() verifies the wavec prefix and token count, then accepts any second token as the version.
A fixture returning wavec banana for --version and valid capability responses produces exit 0 from vex doctor --format=json outside a project. Its wavec check is ok, with version: "banana".
Scope and acceptance
- Validate the version token as a semantic version before caching or reporting success.
- Keep valid prerelease/development versions such as
0.2.1-pre-beta-devworking and preserve any currently supported trailing version description. - Do not apply Vex's release-only build-metadata prohibition to general compiler discovery as part of this fix.
- Add malformed-token, missing-token, wrong-prefix and valid-prerelease fixture cases.
- Doctor must report a failed compiler check for malformed output, rather than reporting the compiler as healthy.
Keep this change within compiler-response validation; no compiler download or compatibility-policy change is requested.
Starting points
This is a bounded follow-up suitable for a first contribution; no broader feature redesign is requested.
- 主要言語
- Rust
- スター
- 1
- フォーク
- 3
- 平均マージ
- 6時間 43分
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wavefnd/Vex のほかの issue
-
documentation good first issue release
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
メンテナーはふだん 1 日以内に返信
-
bug ci cross-platform good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
build cross-platform enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue ui/ux
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
engine-rs P3 review-deferral wasm
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
maniator/verticopolis#1154 ·
メンテナーはふだん 1 日以内に返信
-
FFMPEG_BIN/FFPROBE_BIN are always overridden, so a working system ffmpeg cannot be used対応中かも @Bilker1422 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Stremio/stremio-service#116 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信