invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.19k stars 207 forks source link

When not specifying a melos.yaml, master channel causes a "pubspec.yaml has no lower-bound SDK constraint." #32

Closed rrousselGit closed 4 years ago

rrousselGit commented 4 years ago

Related to #26

When no melos.yaml is specified, running melos bootstrap can throw:

pubspec.yaml has no lower-bound SDK constraint.
You should edit pubspec.yaml to contain an SDK constraint:

environment:
  sdk: '>=2.10.0 <3.0.0'

See https://dart.dev/go/sdk-constraint
pub get failed (65; See https://dart.dev/go/sdk-constraint)

Bootstrap failed, reason: pub get failed, see logs above.

when using the master channel of Flutter.

Here's a project to reproduce this exception:

https://github.com/rrousselGit/ci/tree/366796889f59fbb07fa45cf790f067e675e3f4de

Make sure to use the master channel.

Salakar commented 4 years ago

Hey, pushed a fix for this and it's now live in the latest version.

Thanks