Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Add Dart SDK constraint to example pubspecs that were missing them #3240

Closed

Conversation

zanderso
Copy link
Member

If a pubspec.yaml for an example was missing a Dart SDK constraint, this PR copies the environment section from the pubspec.yaml file in the parent directory.

@amirh
Copy link
Contributor

amirh commented Oct 31, 2020

We should probably re-publish all these plugins (to make sure the pub.dev score won't get hit by analysis errors) so we need to bump the version numbers and add changelog entries.

Side note: it is worrying that so many packages had this problem and were affected by flutter/flutter#69440 (comment), I'm wondering what's the status for all the existing packages in the wild (is it possible that we had a time range during which the plugin template didn't include these constraints?)

@leafpetersen
Copy link

Side note: it is worrying that so many packages had this problem and were affected by flutter/flutter#69440 (comment), I'm wondering what's the status for all the existing packages in the wild (is it possible that we had a time range during which the plugin template didn't include these constraints?)

I think @mit-mit would know about the template, and might have run the numbers for missing sdk (or at least flutter) constraints once?

@zanderso
Copy link
Member Author

we need to bump the version numbers and add changelog entries.

Done

Copy link
Contributor

@amirh amirh left a comment

Choose a reason for hiding this comment

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

LGTM


environment:
sdk: ">=2.1.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

For the Flutter SDK constraint, please add the lower constraint only. See #3236 and flutter/flutter#68437

Copy link
Member Author

Choose a reason for hiding this comment

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

The goal of this PR is to get flutter/plugins CI green with tip-of-tree framework. Other cleanup work can happen in a subsequent PR.

Copy link
Member

Choose a reason for hiding this comment

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

Why would we add a constraint in this PR, and then remove it again later? I don't understand the value in incurring additional debt. The flutter constraint does nothing wrt. getting CI green; you just need the Dart constraint for that.

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR is consistent with the rest of the repo. Fixing every pubspec in the repo is out of scope for this PR. Choosing the right time to do other cleanups is up to @amirh to decide.

@zanderso
Copy link
Member Author

@amirh the Cirrus presubmits are timing out. Do you know what's up with that?

@amirh
Copy link
Contributor

amirh commented Oct 31, 2020

@amirh the Cirrus presubmits are timing out. Do you know what's up with that?

Seems to be flutter/flutter#69439 😞

@amirh
Copy link
Contributor

amirh commented Nov 2, 2020

This has been incorporated into #3239 which also works around the driver timeout.

@ditman ditman mentioned this pull request Nov 2, 2020
13 tasks
@zanderso
Copy link
Member Author

zanderso commented Nov 2, 2020

Closing in favor of #3239

@zanderso zanderso closed this Nov 2, 2020
@zanderso zanderso deleted the add-missing-sdk-constraints branch November 2, 2020 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants