zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.23k stars 608 forks source link

UUID Out of Date #1398

Closed marc-wilson closed 6 months ago

marc-wilson commented 6 months ago

Describe the issue There is a dependency being referenced in this package to uuid: ^3.0.1. I have another package that references the latest 4.x package. Since there is a version conflict, I cannot use this package with any other package requiring a more up to date version of uuid.

To Reproduce (MUST BE PROVIDED)

To help us to understand what is going on and what is the easy way to resolve this bug we ask to describe the issue with a small code example, or if the problem is easy you can describe the issue as follows:

  1. Install DataDog 2.1.0 (https://pub.dev/packages/datadog_flutter_plugin/install)
  2. Install graphql
  3. See error

Because datadog_flutter_plugin >=2.0.0 depends on uuid ^4.0.0 and graphql >=5.2.0-beta.3 depends on uuid ^3.0.1, datadog_flutter_plugin >=2.0.0 is incompatible with graphql >=5.2.0-beta.3. So, because headset_app depends on both graphql ^5.2.0-beta.6 and datadog_flutter_plugin ^2.1.0, version solving failed.

You can try the following suggestion to make the pubspec resolve:

  • Consider downgrading your constraint on datadog_flutter_plugin: flutter pub add datadog_flutter_plugin:^1.6.2

I cannot downgrade datadog as that has other issues with kotlin versions.

Expected behavior The UUID reference should be at least 4.0

marc-wilson commented 6 months ago

Doing dependency_overrides resolves the install errors. However, you then are met with a build failure

dependency_overrides:
  uuid: ^4.0.0

Error (Xcode): ../../.pub-cache/hosted/pub.dev/graphql-5.2.0-beta.6/lib/src/links/websocket_link/websocket_client.dart:14:8: Error: Error when reading '../../.pub-cache/hosted/pub.dev/uuid-4.2.2/lib/uuid_util.dart': No such file or directory

Could not build the application for the simulator.

marc-wilson commented 6 months ago

Looks likes it's merged, just not published anywhere.

1393