Bug: Rust crates with `edition.workspace = true` report no edition

オープン 初心者向け
#632 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

src/core-open/scanners/rust-scanner.tsから始め、既存のloadWorkspaceManifestのロジックと併せてextractRustEditionを読みます。継承される2つのedition形式、メンバーに明示されたedition、editionがない場合の単体テストを追加します。受け入れケースが通り、vg scanが継承されたeditionを報告すれば完了です。

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

説明

bug good first issue

Context

extractRustEdition in src/core-open/scanners/rust-scanner.ts only matches edition = "2021". Workspace members commonly inherit it instead:

[package]
name = "api"
edition.workspace = true   # or: edition = { workspace = true }

Those crates show no runtime in vg scan. The scanner already loads the workspace manifest for dependency inheritance (loadWorkspaceManifest), so [workspace.package] edition is available.

What to do

  • When the member inherits edition, read it from [workspace.package] in the workspace manifest.
  • Support both the dotted-key and inline-table forms.
  • Add unit tests.

Acceptance

  • A member with edition.workspace = true under [workspace.package] edition = "2021" reports 2021.
  • A crate with its own edition = "2024" is unchanged.
  • No edition anywhere still leaves the runtime empty.
主要言語
TypeScript
スター
4
フォーク
3
平均マージ
1日 22時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

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

vibgrate/cli のほかの issue

vibgrate/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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