Check the Dart SDK range from pubspec.yaml
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
- 72/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
dartrow toRUNTIMESinsrc/devready/checks/runtimes.py(exedart, args--version,.tool-versionsnamedart). - Extractor for
pubspec.yaml: line-based only (no YAML parser, zero dependencies). Find thesdk:key indented under a top-levelenvironment:block, strip quotes, return it only if it matchesSAFE_SPEC. Ignoresdk: flutterunderdependencies. - Id
project.dart.pubspec, miss =fail. - Add the
explain.pyentry, adocs/checks.mdrow, a CHANGELOG line, the README check list mention and unit tests (quoted/unquoted spec,sdk: flutterin dependencies is ignored, hostile line, too old).
Done when:
- The pubspec above with Dart 2.19 installed gives one
failshowing both versions. - A Flutter app's
dependencies: flutter: sdk: flutternever 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.
- Lingua principale
- Python
- Stelle
- 2
- Fork
- 3
- Merge medio
- 10h 51m
- PR unite (30g)
- 40
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Evalogical-Inc/devReady
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Evalogical-Inc/devReady#71 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Evalogical-Inc/devReady#66 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 3-5 giorni Idoneità per principianti 72/100
Evalogical-Inc/devReady#61 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
Evalogical-Inc/devReady#72 ·
I maintainer di solito rispondono entro 1 giorno
-
Read the Java pin from .sdkmanrcForse già presa @Utkarsh3725 l’ha presa oggi. Apertaenhancement good first issue help wanted
Difficoltà 3/5 Mezza giornata Idoneità per principianti 74/100
Evalogical-Inc/devReady#70 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Evalogical-Inc/devReady
Issue simili
-
fleet size/m
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sipyourdrink-ltd/bernstein#7548 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted level 1 wocs
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
GianlucaBave/murmury#73 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
G-nn-r/lg_heatpump#52 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
agno-agi/agno#11657 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
category:codebase:gpi category:codebase:handle type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno