agilord / aws_client

High-level APIs for Amazon Web Services (AWS) in Dart
226 stars 102 forks source link

publish of `shared_aws_api` needed to use package `http` >= 1.0.0 #406

Open cbatson opened 1 year ago

cbatson commented 1 year ago

Using published shared_aws_api, package http versions 1 and higher cannot be used:

Because no versions of aws_dynamodb_api match >2.0.0 <3.0.0 and aws_dynamodb_api 2.0.0 depends on shared_aws_api ^2.0.0, aws_dynamodb_api ^2.0.0 requires shared_aws_api ^2.0.0.
And because shared_aws_api >=1.0.0 depends on http ^0.13.1, aws_dynamodb_api ^2.0.0 requires http ^0.13.1.
So, because XXX depends on both aws_dynamodb_api ^2.0.0 and http ^1.1.0, version solving failed.

The code to enable this was already added in #396 (here), so just a publish is needed.

akriese commented 1 year ago

I need to update to http>=1.0.0, so this is also an issue for me!

isoos commented 1 year ago

Note: you may override the dependency in your pubspec.yaml: https://dart.dev/tools/pub/dependencies#dependency-overrides

In this case it is safe to override http to 1.0.0 as there was no API change.

cbatson commented 1 year ago

@isoos Thanks for the workaround tip. It hadn't occurred to me to use a dependency override to move ahead in versions.