Skip to content
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

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Upgrade deps for Dart 3 #432

merged 4 commits into from
Sep 5, 2024

Conversation

robbecker-wf
Copy link
Member

@robbecker-wf robbecker-wf commented Sep 5, 2024

Summary

We want this package to be fully able to run on Dart 3, while being backwards compatible with 2.19 for now.

  • Raise SDK minimum to 2.19
  • Allow analyzer 6x
  • Fix up failing CI checks under Dart 3

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@@ -1,2 +1,3 @@
exclude:
- test/tools/fixtures/organize_directives/directives.dart
- test/tools/fixtures/analyze/failing/failing.dart
Copy link
Member Author

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.

Copy link
Contributor

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

lints: '>=1.0.1 <3.0.0'
build_runner: ^2.0.0
dependency_validator: ^4.0.0
lints: '>=2.0.0 <5.0.0'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update dependencies to allow Dart 3 versions of packages

@@ -1,4 +1,5 @@
@TestOn('vm')
@Tags(['dart2'])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test explodes on Dart 3 because there are @dart=2.9 comments that don't work in Dart 3. The lowest version you can use in a comment like that in Dart 3 is 2.12 (null safety).

@robbecker-wf robbecker-wf marked this pull request as ready for review September 5, 2024 13:58
@robbecker-wf robbecker-wf requested a review from a team as a code owner September 5, 2024 13:58
@@ -1,2 +1,3 @@
exclude:
- test/tools/fixtures/organize_directives/directives.dart
- test/tools/fixtures/analyze/failing/failing.dart
Copy link
Contributor

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

@robbecker-wf
Copy link
Member Author

QA+1 CI passes on Dart 3 latest @Workiva/release-management-p

Copy link
Contributor

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rmconsole3-wf rmconsole3-wf merged commit f8525bc into master Sep 5, 2024
6 checks passed
@rmconsole3-wf rmconsole3-wf deleted the d3_deps branch September 5, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants