Skip to content

feat: faster fvm flutter version detection#7213

Open
EscapeTo5D wants to merge 1 commit intoJanDeDobbeleer:mainfrom
EscapeTo5D:fvm-read-fvmrc-file
Open

feat: faster fvm flutter version detection#7213
EscapeTo5D wants to merge 1 commit intoJanDeDobbeleer:mainfrom
EscapeTo5D:fvm-read-fvmrc-file

Conversation

@EscapeTo5D
Copy link
Copy Markdown

What

Read Flutter version from .fvmrc file instead of running fvm flutter --version command for faster detection.

Why

Terminal command execution is slow, reading file directly is much faster.

How

  • Parse .fvmrc file (primary)
  • Parse .dart_tool/version (fallback)
  • Validate fvm environment with .fvm folder check

- Read Flutter version from .fvmrc file
- Terminal command execution is slow for version detection
@JanDeDobbeleer
Copy link
Copy Markdown
Owner

@EscapeTo5D will this file always be there? I feel a fallback to the old behaviour might still be a good idea.

@JanDeDobbeleer JanDeDobbeleer force-pushed the main branch 2 times, most recently from 6a67260 to 85091a8 Compare February 18, 2026 15:59
Copy link
Copy Markdown
Owner

@JanDeDobbeleer JanDeDobbeleer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my previous comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants