Skip to content

fix: melos suggests update, even though I dont use Dart 3.8.0 yet #910

@LenWdk

Description

@LenWdk

Is there an existing issue for this?

  • I have searched the existing issues.

Version

6.3.2

Description

Hey there,

First of all, thank you for melos, I really appreciate your work.

I noticed something potentially confusing regarding the update prompt:

~ ❯ dart --version
Dart SDK version: 3.7.2 (stable) (Tue Mar 11 04:27:50 2025 -0700) on "macos_arm64"
~ ❯ which melos
/Users/lenwdk/.pub-cache/bin/melos
~ ❯ melos --version
6.3.2
? There is a new version of melos available (6.3.3). Would you like to update? (Y/n) » 

It seems melos suggest to update to version 6.3.3. However, according to the changelog:

6.3.3
- FIX: Bump to SDK 3.8.0. ([5d7521fe](https://github.com/invertase/melos/commit/5d7521fe48d35f1e2905a2a147d8f1d363b1133d))

Updating to 6.3.3 would cause an SDK mismatch since my current Dart SDK version is 3.7.2, not 3.8.0.

Is this intentional?

Thanks!

Steps to reproduce

  1. Install Dart SDK version 3.7.2.
  2. Install melos version 6.3.2.
  3. Run melos --version

Expected behavior

I expect melos not to suggest for an update when the update would lead to an SDK version mismatch.

Screenshots

No response

Additional context and comments

No response

Other

  • I'm interested in working on a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageThe issue needs triaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions