Skip to content

[packages] Dart packages with Flutter-requiring dev dependencies fail to publish #192709

Closed
flutter/packages
#13087

Description

@stuartmorgan-g

The last two pigeon versions failed to publish, because since the addition of a jni dev_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.

(For now, I'll publish these versions manually.)

/cc @tarrinneal

Activity

  1. added
    p: toolingAffects the flutter_plugin_tools package
    packageflutter/packages repository. See also p: labels.
    on Sep 12, 2026
  2. added
    P1High-priority issues at the top of the work list
    packageflutter/packages repository. See also p: labels.
    p: toolingAffects the flutter_plugin_tools package
    and removed
    p: toolingAffects the flutter_plugin_tools package
    packageflutter/packages repository. See also p: labels.
    on Sep 29, 2026
  3. github-actions commented on Oct 16, 2026

    @github-actions

    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.

  4. locked as resolved and limited conversation to collaborators on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions