Skip to content

Incompatibility with Flutter 3.35.0 #4143

@yousinix

Description

@yousinix

build 3.0.1 added dependency on meta ^1.17.0 in #4110, to just use @visibleForTesting (as mentioned in #4122).

This change caused build to be incompatible with Flutter 3.35.0 as it has meta pinned to 1.16.0:

https://github.com/flutter/flutter/blob/3.35.0/packages/flutter/pubspec.yaml#L18

Note: meta is pinned to version 1.16.0 by flutter from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.
Because every version of widgetbook_generator from path depends on build ^3.0.1 which depends on meta ^1.17.0, every version of widgetbook_generator from path requires meta ^1.17.0.
And because every version of flutter from sdk depends on meta 1.16.0, widgetbook_generator from path is incompatible with flutter from sdk.
So, because feature_preview depends on both flutter from sdk and widgetbook_generator from path, version solving failed.
Failed to update packages.

Since meta is only required for development, the constraint should be relaxed to 1.16.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions