You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[packages] Dart packages with Flutter-requiring dev dependencies fail to publish #192709
The last two pigeon versions failed to publish, because since the addition of a jnidev_dependency we get:
============================================================
|| Running for packages/packages/pigeon
============================================================
Publishing...
Running `pub publish --force` in /home/runner/work/packages/packages/packages/pigeon...
Resolving dependencies...
Because pigeon depends on jni >=0.1.1 which requires the Flutter SDK, version solving failed.
Flutter users should use `flutter pub` instead of `dart pub`.
Publishing pigeon failed.
We have repo tooling logic that switches commands based on whether the package requires the Flutter SDK or not, but this is a new edge case that we aren't handling. We'll need to either walk the transitive dependency tree looking for Flutter SDK requirements, or—probably what we'll do at least for now, since it will be much simpler—hard-code the ones that actually come up for us in practice, like jni.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[tool] Use flutter pub for packages that depend on jni (flutter#13087)
github-actions commentedon Oct 16, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.