Skip to content

Pub get infinite loop #2258

Closed
Closed
@Timmmm

Description

@Timmmm

Environment

  • pub version or flutter pub version: Pub 2.7.0-dev.0.0
  • OS version: MacOS 10.14
  • Are you using the Chinese community mirror or a corporate firewall? Probably corporate firewall, but it's light and I don't think it is the problem here.

Problem

When running pub get --verbose in the toh-6 example I get this infinite loop. Without --verbose it just appears to hang.

SLVR:                           ! thus: test >=0.12.0-beta.3 requires analyzer >=0.26.4 <0.34.0 or >=0.36.0 <0.40.0 or matcher >=0.12.3 <0.12.4 or test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7
SLVR:                           ! not test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7 is partially satisfied by not test_core <0.2.2-∞
SLVR:                           ! which is caused by "test_core <0.2.2-∞ depends on matcher >=0.12.3 <0.12.4"
SLVR:                           ! thus: test >=0.12.0-beta.3 requires analyzer >=0.26.4 <0.34.0 or >=0.36.0 <0.40.0 or matcher >=0.12.3 <0.12.4 or test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7
SLVR:                           ! not test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7 is partially satisfied by not test_core <0.2.2-∞
SLVR:                           ! which is caused by "test_core <0.2.2-∞ depends on matcher >=0.12.3 <0.12.4"
SLVR:                           ! thus: test >=0.12.0-beta.3 requires analyzer >=0.26.4 <0.34.0 or >=0.36.0 <0.40.0 or matcher >=0.12.3 <0.12.4 or test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7
SLVR:                           ! not test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7 is partially satisfied by not test_core <0.2.2-∞
SLVR:                           ! which is caused by "test_core <0.2.2-∞ depends on matcher >=0.12.3 <0.12.4"
SLVR:                           ! thus: test >=0.12.0-beta.3 requires analyzer >=0.26.4 <0.34.0 or >=0.36.0 <0.40.0 or matcher >=0.12.3 <0.12.4 or test_core 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7

--trace doesn't show anything different.

To reproduce:

git clone https://github.com/angular-examples/toh-6.git
cd toh-6
pub get

Looking through the bug reports it looks like this sort of thing is an ongoing problem for pub. I'm pretty sure Go's new dependency system is immune to this sort of thing. Maybe you could switch to its model for Dart 3.

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