Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Reject malformed compiler version tokens in doctor and version queries

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
cli, testing

調査の方向性

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 の本文から書いたものです。

説明

bug good first issue tooling

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-dev working 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

環境構築

はじめの一歩

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

wavefnd/Vex のほかの issue

wavefnd/Vex の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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