Skip to content

[flutter_tools] pubspec.yaml environment.flutter constraint not respected by pub get #95472

@neiljaywarner

Description

@neiljaywarner

steps to reproduce

  1. use current stable version flutter 2.8.1
  2. in pubspec.yaml use flutter: ">=2.8.0 <2.8.1" or "2.8.0"

Expected behaviour - flutter pub get error

The current Flutter SDK version is 2.8.1.

Because app_name requires Flutter SDK version <2.8.1, version solving failed.

Actual behaviour: pub get succeeds; vesrion constraint fails, overzealous dev or build server just ugpraded to a newer version of flutter without discussion or any testing at all or possibly even an easy OOTB way to see what version was built with

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: regressionIt was better in the past than it is nowr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions