flutter / flutter/devtools

Consider moving off of package:stager

Đang mở
#8,666 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
blocked cost: medium P3 tech debt
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

After pulling from the latest master of devtools, I received the following error:

```
Because devtools_app depends on integration_test from sdk which depends on test_api 0.7.4, test_api 0.7.4 is required.
And because test 1.25.8 depends on test_api 0.7.3, test 1.25.8 is forbidden.
And because devtools_tool depends on test ^1.25.8 and no versions of test match >1.25.8 <1.25.9, test ^1.25.9 is required.
And because test >=1.25.9 depends on analyzer >=6.0.0 <8.0.0 and stager 1.0.1 depends on analyzer ^5.1.0, stager 1.0.1 is forbidden.
Because no versions of stager match >1.0.1 <2.0.0 and devtools_app depends on stager ^1.0.1, stager 1.0.1 is required.
Thus, version solving failed.
```

The workaround is to add the following dependency_overrides to the top level pubspec.yaml:
```
dependency_overrides:
analyzer: 6.11.0
dart_style: 2.3.3
```

The longer term fix will require stager to update it's dependencies:
https://github.com/bryanoltman/stager/pull/48

We should make a decision if we should continue to depend on stager going forward if the versioning issue cannot be addressed from the stager side.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start with the top-level pubspec.yaml and reproduce the reported dependency resolution conflict involving stager, analyzer, test_api, and dart_style. Review stager PR #48 and determine whether the dependency can be updated or stager should be removed; done means recording a clear decision and resolving the versioning issue without the reported workaround.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart
Lĩnh vực
build-system, tooling
Loại issue
Tái cấu trúc
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.