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

`melos bootstrap` fail when using flutter master #26

Closed cyanglaz closed 4 years ago

cyanglaz commented 4 years ago

When using flutter on master channel, running melos bootstrap results below error message:

ychris-macpro:melos_test ychris$ melos bootstrap --ignore="*example*"
melos bootstrap
   └> /Users/ychris/flutter/melos_test

Bootstrapping project...               /Running "flutter pub get" in .melos_tool...                     

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.

It looks like the melos_tool.yaml is missing an environment constraint, which is required by the latest pub.

cyanglaz commented 4 years ago

After looking at the code, I realized that I was missing the environment key in melos.yaml, closing the issue.