Closed
Description
Environment
pub version
orflutter pub version
: Pub 2.12.0-214.0.dev- OS version: Linux (doesn't matter)
- Are you using the Chinese community mirror or a corporate firewall? No
Problem
We're attempting to publish this Plugin:
However when I do pub publish
on it, I get the following error:
...
Do you want to publish file_selector_web 0.7.0 (y/N)? y
Uploading... (1.1s)
pubspec.yaml allows Flutter SDK version prior to 1.20.0, which does not support having no `ios/` folder.
Please consider increasing the Flutter SDK requirement to ^1.20.0 or higher (environment.sdk.flutter) or create an `ios/` folder.
See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin
That's fine, and the error text is helpful (and I have a PR addressing the issue), however if I run pub publish -n
in the same package:
...
Package has 0 warnings.
We use pub publish -n
as a CI verification step for incoming pull requests to flutter/plugins. Is there anything else we need to do to get those server-side errors surfaced as well? We allowed a merge that is not "publishable" (and we'd like to avoid that).
Expected behavior
I would expect pub publish --dry-run
to surface the same errors that pub publish
eventually spits.
Actual behavior
pub publish --dry-run
seems to only run a subset of the validations that pub publish
does.
Metadata
Metadata
Assignees
Labels
No labels