numen31337 / copy_with_extension

Provides Dart Build System builder for generating copyWith extensions for annotated classes.
https://pub.dev/packages/copy_with_extension_gen
MIT License
74 stars 30 forks source link

Support analyzer 4.0.0 #52

Closed wujek-srujek closed 2 years ago

wujek-srujek commented 2 years ago

Currently the supported analyzer versions are >= 2.0.0 < 4.0.0, which prevents the library from being used with other libraries that depend on ^4.0.0, e.g. here my output from a project using a custom generator:

Running "flutter pub get" in my_app...             
Because every version of my_generator from path depends on analyzer ^4.0.0 and copy_with_extension_gen >=3.0.0 depends on analyzer >=2.0.0 <4.0.0, my_generator from path is incompatible with copy_with_extension_gen >=3.0.0.
So, because my_app depends on both copy_with_extension_gen ^4.0.0 and my_generator from path, version solving failed.
pub get failed (1; So, because my_app depends on both copy_with_extension_gen ^4.0.0 and validator_generator from path, version solving failed.)
exit code 1

Not a big deal in my case as I own the code for the other generator, but it could be a deal breaker for others.