-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade deps for Dart 3 #432
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
exclude: | ||
- test/tools/fixtures/organize_directives/directives.dart | ||
- test/tools/fixtures/analyze/failing/failing.dart | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,12 @@ description: > | |
repository: https://github.com/Workiva/dart_dev | ||
|
||
environment: | ||
sdk: '>=2.18.0 <4.0.0' | ||
sdk: '>=2.19.0 <4.0.0' | ||
|
||
dependencies: | ||
analyzer: '>=2.0.0 <6.0.0' | ||
analyzer: '>=5.0.0 <7.0.0' | ||
args: ^2.0.0 | ||
async: ^2.5.0 | ||
build_runner: ^2.0.0 | ||
crypto: ^3.0.1 | ||
glob: ^2.0.0 | ||
io: ^1.0.0 | ||
|
@@ -26,8 +25,9 @@ dependencies: | |
collection: ^1.15.0 | ||
|
||
dev_dependencies: | ||
dependency_validator: ^3.0.0 | ||
lints: '>=1.0.1 <3.0.0' | ||
build_runner: ^2.0.0 | ||
dependency_validator: ^4.0.0 | ||
lints: '>=2.0.0 <5.0.0' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update dependencies to allow Dart 3 versions of packages |
||
matcher: ^0.12.5 | ||
test: ^1.15.7 | ||
test_descriptor: ^2.0.0 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@TestOn('vm') | ||
@Tags(['dart2']) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test explodes on Dart 3 because there are |
||
import 'package:dart_dev/src/utils/get_dart_version_comment.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an invalid dart file (intentionally for tests) but causes the analyzer to throw when running dependency validator (looking for import statements). Added to the exclude list to avoid dependency validator breaking in CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on updating this to:
test/**/fixtures/**.dart
to mirror what we have in the dart_dev config? https://github.com/Workiva/dart_dev/blob/master/tool/dart_dev/config.dart#L9