Skip to content

[dart][dart-dio] Update dependencies#9122

Merged
wing328 merged 5 commits intoOpenAPITools:masterfrom
kuhnroyal:dart/dio/dependencies
Mar 29, 2021
Merged

[dart][dart-dio] Update dependencies#9122
wing328 merged 5 commits intoOpenAPITools:masterfrom
kuhnroyal:dart/dio/dependencies

Conversation

@kuhnroyal
Copy link
Copy Markdown
Contributor

  • update dio for dart-dio-next
  • fix build problems with analyzer & Dart 2.12 for dart-dio

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master, 5.1.x, 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

CC @swipesight (2018/09) @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12)

build_runner: any
test: '>=1.3.0 <1.16.0'
dependency_overrides:
# Needed to make built_value work correctly with Dart 2.12
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure we want to do that... if we start generating stuff like this it probably mean some deps are not up to date so we should wait until those deps are fixed. You can do that on your own project, but not push that for everyone. Let's see what opinion have other reviewers. I would probably push more to have a null safety generation once dio is ready

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The problem is we have Dart SDK 2.12 in CI and there are not gonna be any new dependency versions for this generator, ever. There is no migration path for the dart-dio generator to 2.12/NNBD. It simply needs to be replaced by the dart-dio-next generator and this one should be deprecated.
We could leave it as is but then we need Dart 2.10 in the CI.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Your current `analyzer` version may not fully support your current SDK version.

Please try upgrading to the latest `analyzer` by running `flutter packages upgrade`.

Analyzer language version: 2.10.0
SDK language version: 2.12.0

If you are getting this message and have the latest analyzer please file
an issue at https://github.com/dart-lang/sdk/issues/new with the title
"No published analyzer available for language version 2.12.0".
Please search the issue tracker first and thumbs up and/or subscribe to
existing issues if present to avoid duplicates.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I reverted the changes with the analyzer. I can't get it to build locally with Dart 2.12.0 or 2.12.2 but in CI it only seems to be a warning.

This only fails locally, not sure why. CI only shows a warning.
@kuhnroyal
Copy link
Copy Markdown
Contributor Author

@wing328 This needs to be merged to fix the failing build on master. #9121 should then build with this.

@kuhnroyal
Copy link
Copy Markdown
Contributor Author

@wing328 I think this can be merged when you have time.

@wing328 wing328 merged commit f66fbf6 into OpenAPITools:master Mar 29, 2021
@wing328 wing328 added this to the 5.1.1 milestone Apr 30, 2021
@kuhnroyal kuhnroyal deleted the dart/dio/dependencies branch May 26, 2021 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants