Skip to content

Local bootstrap broken (dependency conflicts) #62

@chbiel

Description

@chbiel

Affected Package

unknown

Steps to Reproduce

  1. Install latest flutter SDK
  2. Clone repo
  3. run dart run melos bootstrap

Actual Behavior

The repo cannot be bootstraped because of depencency conflicts:

Note: test_api is pinned to version 0.7.7 by flutter_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because no versions of test match >1.31.0 <1.31.1 and test >=1.26.3 <1.27.0 depends on analyzer >=6.0.0 <9.0.0, test >=1.26.3 <1.27.0-∞ or >1.31.0 <1.31.1-∞ requires analyzer >=6.0.0 <9.0.0.
And because test >=1.27.0 <1.29.0 depends on test_api 0.7.8, test >=1.26.3 <1.29.0-∞ or >1.31.0 <1.31.1-∞ requires analyzer >=6.0.0 <9.0.0 or test_api 0.7.8.
And because test >=1.29.0 <1.30.0 depends on test_api 0.7.9 and test >=1.30.0 <1.31.0 depends on test_api 0.7.10, test >=1.26.3 <1.31.0-∞ or >1.31.0 <1.31.1-∞ requires test_api 0.7.8 or 0.7.9 or 0.7.10 or analyzer >=6.0.0
  <9.0.0.
And because test >=1.31.1 depends on test_api 0.7.12 and test 1.31.0 depends on test_api 0.7.11, test >=1.26.3 requires test_api 0.7.8 or 0.7.9 or 0.7.10 or 0.7.11 or 0.7.12 or analyzer >=6.0.0 <9.0.0.
Because locorda depends on flutter_test from sdk which depends on test_api 0.7.7, test_api 0.7.7 is required.
Thus, test >=1.26.3 requires analyzer >=6.0.0 <9.0.0.
So, because locorda_flutter_core depends on test ^1.26.3 and locorda_dev depends on analyzer >=10.0.0 <14.0.0, version solving failed.

Expected Behavior

Bootstrap should work with the most recent flutter version on a clean clone.

The explicit test package pinning should be removed because there are different pinned versions in the sub packages.

Platform

No response

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions