-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Move all null safety packages' min dart sdk to 2.12.0 #3822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but can you also update the publish check script to no longer allow this warning to pass?
Ssssso many packages! :P |
Good point! done! |
Needs test updates for the tool behavioral change :) |
I think maybe we can add a flag to keep the feature that ignores pre-release check, for possible feature release requirement. I did it in the PR. let me know if you think otherwise and if so why. @stuartmorgan @ditman |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping it behind a flag SGTM.
argParser.addFlag( | ||
_allowPrereleaseFlag, | ||
help: 'Allows the pre-release SDK warning to pass.' | ||
'When enabled, a pub warning, which asks to publish the package as a pre-release version when' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're missing spaces at the ends of these string literals, so they won't concatenate correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a new line after the first sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second part still has the same problem; this will print "[...] a pre-release verison whenthe SDK [...]"
@@ -90,7 +90,7 @@ void main() { | |||
throwsA(isA<ToolExit>())); | |||
}); | |||
|
|||
test('pass on prerelease', () async { | |||
test('pass on prerelease is --allow-pre-release flag is on', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: s/is/if/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -105,7 +105,8 @@ void main() { | |||
|
|||
processRunner.processesToReturn.add(process); | |||
|
|||
expect(runner.run(<String>['publish-check']), completes); | |||
expect(runner.run(<String>['publish-check', '--allow-pre-release']), | |||
completes); | |||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need a new test that the same setup fails without --allow-pre-release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stuartmorgan Fixed
argParser.addFlag( | ||
_allowPrereleaseFlag, | ||
help: 'Allows the pre-release SDK warning to pass.' | ||
'When enabled, a pub warning, which asks to publish the package as a pre-release version when' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a new line after the first sentence.
@@ -105,7 +105,8 @@ void main() { | |||
|
|||
processRunner.processesToReturn.add(process); | |||
|
|||
expect(runner.run(<String>['publish-check']), completes); | |||
expect(runner.run(<String>['publish-check', '--allow-pre-release']), | |||
completes); | |||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -90,7 +90,7 @@ void main() { | |||
throwsA(isA<ToolExit>())); | |||
}); | |||
|
|||
test('pass on prerelease', () async { | |||
test('pass on prerelease is --allow-pre-release flag is on', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit
argParser.addFlag( | ||
_allowPrereleaseFlag, | ||
help: 'Allows the pre-release SDK warning to pass.' | ||
'When enabled, a pub warning, which asks to publish the package as a pre-release version when' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second part still has the same problem; this will print "[...] a pre-release verison whenthe SDK [...]"
* master: (79 commits) Fix grammatical error in contributing guide (flutter#3217) [google_sign_in_web] fix README typos. [tool] combine run and runAndExitOnError (flutter#3827) [camera] android-rework part 2: Android auto focus feature (flutter#3796) [in_app_purchase_platform_interface] Added additional fields to ProductDetails (flutter#3826) Move all null safety packages' min dart sdk to 2.12.0 (flutter#3822) [path_provider_*] code cleanup: sort directives (flutter#3823) [in_app_purchase] Implementation of platform interface (flutter#3781) [google_sign_in] Add todo WRT correctly setting X-Goog-AuthUser header (flutter#3819) [tools] fix version check command not working for new packages (flutter#3818) [camera] android-rework part 1: Base classes to support Android Camera features (flutter#3795) fix MD (flutter#3815) Path provider windows crash fix (flutter#3814) [local_auth] docs update (flutter#3103) Update PULL_REQUEST_TEMPLATE.md (flutter#3801) [quick_actions] handle cold start on iOS correctly (flutter#3811) Replace path_provider_linux widget tests with simple unit tests (flutter#3812) [sensors] format dart code based on the new dart formatter (flutter#3809) [google_sign_in] Fix "pick account" on iOS (flutter#3805) [image_picker_platform_interface] Added pickMultiImage (flutter#3782) ...
* upstream/master: (383 commits) Add implement and registerWith method to plugins (flutter#3833) Update third_party license checking (flutter#3844) [tool] add `all` and `dry-run` flags to publish-plugin command (flutter#3776) Re-add bin/ to flutter_plugin_tools (flutter#3839) switch from using 'tuneup' to analyze to 'dart analyze' (flutter#3837) [in_app_purchase] Federated iOS implementation (flutter#3832) Prep the tools for publishing (flutter#3836) [in_app_purchase] Make PurchaseDetails.status mandatory (flutter#3831) Fix grammatical error in contributing guide (flutter#3217) [google_sign_in_web] fix README typos. [tool] combine run and runAndExitOnError (flutter#3827) [camera] android-rework part 2: Android auto focus feature (flutter#3796) [in_app_purchase_platform_interface] Added additional fields to ProductDetails (flutter#3826) Move all null safety packages' min dart sdk to 2.12.0 (flutter#3822) [path_provider_*] code cleanup: sort directives (flutter#3823) [in_app_purchase] Implementation of platform interface (flutter#3781) [google_sign_in] Add todo WRT correctly setting X-Goog-AuthUser header (flutter#3819) [tools] fix version check command not working for new packages (flutter#3818) [camera] android-rework part 1: Base classes to support Android Camera features (flutter#3795) fix MD (flutter#3815) ...
This is mainly to remove the warning when
pub publish
. We can skip publishing this change for now.