[Feature Request] Use the flutter version defined in pubspec.yaml when running `fvm install`

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
dart, flutter
領域
cli

調査の方向性

まず lib/src/services/project_service.dart を読み、特に参照されているバージョン解決ロジックを確認して、fvm install がどのようにバージョンを選択するかを追跡します。pubspec.yaml の environment.flutter にある Flutter の制約がどのように表現されているか、>=3.16.0 のような範囲も含めて確認します。fvm install が追加の設定ファイルやコマンドなしで、プロジェクトで定義されたこの制約を使用できれば完了です。

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

説明

enhancement triage:backlog

Is your feature request related to a problem? Please describe.
It is a bit redundant to have to define a config file or run an extra command to specify which flutter version should be installed when this information is already specified in pubspec.yaml.

Describe the solution you'd like
fvm install - # Installs version found in project config should have the option to use the specified flutter version already defined in pubspec.yaml under environment: > flutter:.

Describe alternatives you've considered
Installing yq and run fvm install `yq -r .environment.flutter pubspec.yaml` . Not ideal especially if the flutter version is set as flutter: ">=3.16.0" or similar.

Additional context
Looks like this feature was considered in the past: https://github.com/leoafarias/fvm/blob/161c0834c8d91f437087e27623b7a95288912792/lib/src/services/project_service.dart#L45C1-L47C1

主要言語
Dart
スター
5.5k
フォーク
283
平均マージ
21分
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

btwld/fvm のほかの issue

btwld/fvm の issue をすべて見る

似ている issue

Dart の issue をもっと見る

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

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