Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pubspec is limiting dart to 2.0 which is making my projects 2.1.0 fail #30

Closed
chetstriker opened this issue Sep 2, 2018 · 5 comments

Comments

@chetstriker
Copy link

The pubspec line in question, does this need to be restrictive?
environment:
sdk: ">=1.19.0 <2.0.0"

@modulovalue
Copy link

i'm also having problems, please update the constraints
thanks

@wesleyfantinel
Copy link

Following this suggestion too. Hope this guys pay attention to it.

@ianldgs
Copy link
Owner

ianldgs commented Sep 3, 2018

does #31 fixes it?

@modulovalue
Copy link

modulovalue commented Sep 3, 2018

Upper constraints on the SDK version
Once your package passes Dart 2 analysis, update the upper constraint to declare that the package is compatible with Dart 2:

environment:
  # Works in Dart 2 only.
  sdk: '>=2.0.0 <3.0.0'

Packages must have an upper constraint of <3.0.0 to work in Dart 2 stable and subsequent Dart 2 releases. Dart 2 dev builds before the stable release have lax upper constraint checking and can use packages that have no SDK constraints or an upper constraint of <2.0.0.

source

@ianldgs
Copy link
Owner

ianldgs commented Sep 3, 2018

Just released 0.2.8 on pub with the fix from @naft-a. Thanks everyone!

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

No branches or pull requests

4 participants