Skip to content

Infinite loop in the solver #3057

Closed
@simolus3

Description

@simolus3

This was found by @jeroen-meijer. I'm on Dart SDK version: 2.13.4 (stable), but this also happens on 2.14.0-341.0.dev.

name: flutter_pub_get_loop_example
description: Dependencies go brrrrrrrrrrrrt
version: 0.0.1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  freezed_annotation: ^0.12.0

dev_dependencies:
  build_runner:
  freezed:
  mocktail: ^0.1.3

The solver quickly goes into this loop from which it doesn't recover:

SLVR:                                                                                         conflict: freezed ^0.13.0-nullsafety.0 depends on freezed_annotation >=0.13.0-nullsafety.0 <2.0.0
SLVR:                                                                                         ! freezed ^0.13.0-nullsafety.0 is partially satisfied by not freezed <0.13.0-nullsafety.0
SLVR:                                                                                         ! which is caused by "freezed <0.13.0-nullsafety.0 depends on build >=0.12.6 <2.0.0"
SLVR:                                                                                         ! thus: freezed <0.14.0 requires freezed_annotation >=0.13.0-nullsafety.0 <2.0.0 or build >=0.12.6 <2.0.0
SLVR:                                                                                         ! freezed <0.14.0 is partially satisfied by not freezed <0.13.0-nullsafety.0
SLVR:                                                                                         ! which is caused by "freezed <0.13.0-nullsafety.0 depends on build >=0.12.6 <2.0.0"
SLVR:                                                                                         ! thus: freezed <0.14.0 requires freezed_annotation >=0.13.0-nullsafety.0 <2.0.0 or build >=0.12.6 <2.0.0
SLVR:                                                                                         ! freezed <0.14.0 is partially satisfied by not freezed <0.13.0-nullsafety.0
SLVR:                                                                                         ! which is caused by "freezed <0.13.0-nullsafety.0 depends on build >=0.12.6 <2.0.0"
SLVR:                                                                                         ! thus: freezed <0.14.0 requires freezed_annotation >=0.13.0-nullsafety.0 <2.0.0 or build >=0.12.6 <2.0.0
SLVR:                                                                                         ! freezed <0.14.0 is partially satisfied by not freezed <0.13.0-nullsafety.0
SLVR:                                                                                         ! which is caused by "freezed <0.13.0-nullsafety.0 depends on build >=0.12.6 <2.0.0"
SLVR:                                                                                         ! thus: freezed <0.14.0 requires freezed_annotation >=0.13.0-nullsafety.0 <2.0.0 or build >=0.12.6

First 500 resolver logs: start.txt. This may be related to #2258?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions