Check the Dart SDK range from pubspec.yaml

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, python, yaml
領域
cli

調査の方向性

Start with the RUNTIMES table in src/devready/checks/runtimes.py and the existing extractor pattern there, then read explain.py and docs/checks.md to see where a new entry goes. Write a line-based extractor for the sdk key under the top-level environment block of pubspec.yaml, ignoring sdk: flutter under dependencies. Done when a pubspec requiring >=3.0.0 <4.0.0 with Dart 2.19 yields one fail showing both versions, and pytest, ruff check and ruff format --check pass.

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

説明

enhancement good first issue help wanted

Problem: Dart and Flutter projects declare the SDK range in pubspec.yaml:

environment:
  sdk: ">=3.0.0 <4.0.0"

dart pub get fails when the installed SDK is outside that range. DevReady does not check Dart.

Do:

  • Add a dart row to RUNTIMES in src/devready/checks/runtimes.py (exe dart, args --version, .tool-versions name dart).
  • Extractor for pubspec.yaml: line-based only (no YAML parser, zero dependencies). Find the sdk: key indented under a top-level environment: block, strip quotes, return it only if it matches SAFE_SPEC. Ignore sdk: flutter under dependencies.
  • Id project.dart.pubspec, miss = fail.
  • Add the explain.py entry, a docs/checks.md row, a CHANGELOG line, the README check list mention and unit tests (quoted/unquoted spec, sdk: flutter in dependencies is ignored, hostile line, too old).

Done when:

  • The pubspec above with Dart 2.19 installed gives one fail showing both versions.
  • A Flutter app's dependencies: flutter: sdk: flutter never counts as a version.

Out of scope: the flutter: constraint under environment (follow-up).

Done when: see the list above, plus pytest, ruff check and ruff format --check pass.

Notes:

  • Read-only: never execute project files, never echo file contents; only a validated version or spec reaches the report.
  • No network, no new runtime dependencies (Python >= 3.10 stdlib only).
  • Comment below to claim it and I will assign you.
主要言語
Python
スター
2
フォーク
3
平均マージ
10時間 51分
マージ済み PR(30日)
40

環境構築

はじめの一歩

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

Evalogical-Inc/devReady のほかの issue

Evalogical-Inc/devReady の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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