From a25e764e84715cb66dd38e6fa88bf36d73576924 Mon Sep 17 00:00:00 2001 From: Erik Tetland Date: Fri, 12 Jan 2024 23:31:14 -0600 Subject: [PATCH] add flutter version constraint upper bound note (#5375) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a note that the flutter version constraint is not fully enforced -- see [this issue](https://github.com/flutter/flutter/issues/95472) --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. - [x] This PR doesn’t contain automatically generated corrections or text (Grammarly, LLMs, and similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
Contribution guidelines:
- See our [contributor guide](https://github.com/dart-lang/site-www/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Code changes should generally follow the [Dart style guide](https://dart.dev/effective-dart) and use `dart format`. - Updates to [code excerpts](https://github.com/dart-lang/site-shared/blob/main/doc/code-excerpts.md) indicated by ` --------- Co-authored-by: Anthony Sansone Co-authored-by: Parker Lougheed --- src/tools/pub/pubspec.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tools/pub/pubspec.md b/src/tools/pub/pubspec.md index 90823076c0..d7c73272f0 100644 --- a/src/tools/pub/pubspec.md +++ b/src/tools/pub/pubspec.md @@ -514,8 +514,15 @@ environment: A Flutter SDK constraint is satisfied only if pub is running in the context of the `flutter` executable, and the Flutter SDK's -`version` file matches the given version constraint. Otherwise, -the package will not be selected. +`version` file meets the version constraint's lower bound. Otherwise, +the package won't be selected. + +{{site.alert.note}} + Note: The Flutter SDK only enforces the lower bound of the flutter constraint. + To learn more, check out + [issue #95472](https://github.com/flutter/flutter/issues/95472) + in the `flutter/flutter` repository. +{{site.alert.end}} To publish a package with a Flutter SDK constraint, you must specify a Dart SDK constraint with a minimum version of