Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Reject malformed compiler version tokens in doctor and version queries

Aperta
#166 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
1
Fork
3
Merge medio
6h 43m
PR unite (30g)
15

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wavefnd/Vex

Tutte le issue di wavefnd/Vex

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.