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

chore(aft): Better handling of pre-release Dart SDK usage #3569

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

dnys1
Copy link
Contributor

@dnys1 dnys1 commented Aug 16, 2023

Some packages in the repo (for example, the actions pkg) set a pre-release Dart SDK constraint so that preview features of Dart can be leveraged. This updates aft so that:

  1. bootstrap skips packages which set this constraint if the current Dart SDK doesn't support it.
  2. The constraints checker ignores preview constraints since these packages do not need to conform to the global setting.

@dnys1 dnys1 requested a review from a team as a code owner August 16, 2023 18:13
@dnys1 dnys1 force-pushed the chore/aft/preview-constraints branch from 57f7e09 to 07b244e Compare August 16, 2023 18:15
Equartey
Equartey previously approved these changes Aug 17, 2023
// The problem of packages setting incorrect constraints, for example setting
// `^3.0.5` when the current repo constraint is `^3.0.0` and we're running
// `aft` with `3.0.1` is a different issue handled by the constraints commands.
(pkg) => pkg.compatibleWithCurrentSdk,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we print the packages that are ignored as a result? In the future should someone change to a incompatible Dart SDK for whatever reason, perhaps it would be good to notify it's being ignored in bootstrap should some confusion result.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@override
List<Object?> get props => [name];

@override
String get runtimeTypeName => 'PackageInfo';
Copy link
Contributor

Choose a reason for hiding this comment

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

General programming approach question - why do we combine multiple classes into the same file? As someone unfamiliar with your aft code it's a bit confusing to have these large files to scroll through and also not being able to search by classes by file name that match the class contained.

fjnoyp
fjnoyp previously approved these changes Aug 18, 2023
Copy link
Contributor

@fjnoyp fjnoyp left a comment

Choose a reason for hiding this comment

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

Added some non blocking comments.

@dnys1 dnys1 force-pushed the chore/aft/preview-constraints branch 4 times, most recently from 9cf0524 to 32db8b8 Compare August 18, 2023 16:34
@dnys1 dnys1 force-pushed the fix/aft/publish-constraints branch 2 times, most recently from 206b2fb to 50b8e21 Compare August 25, 2023 15:55
Base automatically changed from fix/aft/publish-constraints to main August 25, 2023 16:00
@dnys1 dnys1 dismissed stale reviews from fjnoyp and Equartey August 25, 2023 16:00

The base branch was changed.

Some packages in the repo (for example, the `actions` pkg) set a pre-release Dart SDK constraint so that preview features of Dart can be leveraged. This updates `aft` so that: 1) `bootstrap` skips packages which set this constraint if the current Dart SDK doesn't support it; and 2) Ignores preview constraints in the constraints checker, since these packages do not need to conform to the global setting.
@dnys1 dnys1 force-pushed the chore/aft/preview-constraints branch from 32db8b8 to 4ecc37e Compare August 25, 2023 16:00
@dnys1 dnys1 merged commit db6da71 into main Aug 25, 2023
3 checks passed
@dnys1 dnys1 deleted the chore/aft/preview-constraints branch August 25, 2023 16:08
dnys1 added a commit that referenced this pull request Aug 28, 2023
Some packages in the repo (for example, the `actions` pkg) set a pre-release Dart SDK constraint so that preview features of Dart can be leveraged. This updates `aft` so that: 1) `bootstrap` skips packages which set this constraint if the current Dart SDK doesn't support it; and 2) Ignores preview constraints in the constraints checker, since these packages do not need to conform to the global setting.
dnys1 added a commit that referenced this pull request Aug 30, 2023
Some packages in the repo (for example, the `actions` pkg) set a pre-release Dart SDK constraint so that preview features of Dart can be leveraged. This updates `aft` so that: 1) `bootstrap` skips packages which set this constraint if the current Dart SDK doesn't support it; and 2) Ignores preview constraints in the constraints checker, since these packages do not need to conform to the global setting.
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

Successfully merging this pull request may close these issues.

3 participants