You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to set up envied, and ran into an issue, and forked to contribute a fix. This unraveled into a series of related issues that I believe a maintainer / someone who can push to pub.dev has to resolve, as the root issue is the generator takes a dependency on the 0.5.0 version of envied, and that version was never published to pub.dev.
Notes: Version issues causing incompatibilities
envied 0.5.0 was never released [^1][^2]
envied_generator in repo depends on envied 0.5.0
envied_generator depends on older analyzer version, causing errors when flutter pub add is used in projects with dependencies using newer analyzer [^3]
Version issues limit ability to contribute
fork repository to update this. run flutter pub get in //packages/envied_generator. Receive error that it depends on non-existent envied 0.5.0
changing dependency to 0.3.0+ is presumably inappropriate because this repo is source of truth
changing dependency to git based (i.e. [^5]) is inappropriate, gets lint that pub packages can't depend on git dependencies [^6]
Can't use git dependency
Adding a dependency on the git version of envied_generator leads to error that envied_generator depends on non-existent pub version 0.5.0 of envied [^7]
Adding a dependency on the git version of envied leads to an error that envied_generator depends on the pub version, and both can't be in the same app [^8]
Because envied_generator <0.2.3+1 depends on analyzer ^4.1.0 and envied_generator >=0.2.3+1 <0.3.0+1 depends
on analyzer ^5.1.0, envied_generator <0.3.0+1 requires analyzer ^4.1.0 or ^5.1.0.
And because envied_generator >=0.3.0+1 <0.3.0+2 depends on analyzer ^5.12.0 and envied_generator >=0.3.0+2
<0.3.0+3 depends on analyzer ^5.11.1, envied_generator <0.3.0+3 requires analyzer ^4.1.0 or >=5.1.0 <6.0.0.
And because envied_generator >=0.3.0+3 depends on analyzer ^5.1.0 and riverpod_lint >=2.2.1 depends on
analyzer ^6.0.0, envied_generator is incompatible with riverpod_lint >=2.2.1.
So, because telosnex depends on both envied_generator any and riverpod_lint ^2.3.3, version solving failed.
[^4]
Resolving dependencies...
Because envied_generator depends on envied ^0.5.0 which doesn't match any versions, version
solving failed.
You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on envied: flutter pub add envied:'^0.3.0+3'
[^5]
dependencies:
envied:
git:
url: https://github.com/petercinibulk/envied
ref: main
path: packages/envied_generator/
[^6]
Publishable packages can't have 'git' dependencies.
Try adding a 'publish_to: none' entry to mark the package as not for publishing or remove the git dependency.dart(invalid_dependency)
[^7]
Because every version of envied_generator from git depends on envied ^0.5.0 which doesn't match any
versions, envied_generator from git is forbidden.
[^8]
Because every version of envied_generator from git depends on envied from hosted and telosnex depends on
envied from git, envied_generator from git is forbidden.
The text was updated successfully, but these errors were encountered:
jpohhhh
added a commit
to jpohhhh/envied
that referenced
this issue
Nov 4, 2023
I was trying to set up envied, and ran into an issue, and forked to contribute a fix. This unraveled into a series of related issues that I believe a maintainer / someone who can push to pub.dev has to resolve, as the root issue is the generator takes a dependency on the 0.5.0 version of envied, and that version was never published to pub.dev.
Notes:
Version issues causing incompatibilities
flutter pub add
is used in projects with dependencies using newer analyzer [^3]Version issues limit ability to contribute
flutter pub get
in //packages/envied_generator. Receive error that it depends on non-existent envied 0.5.0Can't use git dependency
[^1] 0.3.0+3 is current on pub.dev
[^2] failed deploys here: https://github.com/petercinibulk/envied/deployments
[^3] with dependency on riverpod_lint, run
flutter pub add envied_generator
, receive output:[^4]
[^5]
[^6]
[^7]
[^8]
The text was updated successfully, but these errors were encountered: