Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version solving fails for flutter_tool #141032

Closed
goderbauer opened this issue Jan 5, 2024 · 8 comments · Fixed by #141424
Closed

version solving fails for flutter_tool #141032

goderbauer opened this issue Jan 5, 2024 · 8 comments · Fixed by #141424
Labels
P0 Critical issues such as a build break or regression team-tool Owned by Flutter Tool team

Comments

@goderbauer
Copy link
Member

goderbauer commented Jan 5, 2024

From running the flutter tool locally at tip of tree:

Resolving dependencies... (1.8s)
Because flutter_tools depends on web_socket_channel 2.4.2 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 web_socket_channel: dart pub add web_socket_channel:^2.4.1
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

Looks like web_socket_channel was bumped to 2.4.2 in #140979, but that version does not exist (anymore?) on pub: https://pub.dev/packages/web_socket_channel

@goderbauer goderbauer added P0 Critical issues such as a build break or regression team-tool Owned by Flutter Tool team labels Jan 5, 2024
@goderbauer
Copy link
Member Author

cc @christopherfujino

@goderbauer
Copy link
Member Author

@goderbauer
Copy link
Member Author

https://pub.dev/packages/web_socket_channel/versions says at the very bottom that v2.4.2 was retracted.

@goderbauer
Copy link
Member Author

Some context about the retracted version is at dart-lang/web_socket_channel#318 (comment).

@goderbauer
Copy link
Member Author

@piedcipher
Copy link
Member

piedcipher commented Jan 8, 2024

faced this while doing flutter channel master.

tried a hack by going to flutter directory and doing git checkout master && git pull origin master. then when I opened the SDK in vscode it auto-downloaded the upgrade.

Michal-MK pushed a commit to Michal-MK/flutter that referenced this issue Jan 8, 2024
Markzipan pushed a commit to Markzipan/flutter that referenced this issue Jan 9, 2024
@christopherfujino
Copy link
Member

This was resolved in #141040

auto-submit bot pushed a commit that referenced this issue Jan 12, 2024
Fixes #141032

We pinned to web_socket_channel v2.4.1 because v2.4.2 was retracted, however v2.4.3 is now available.
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P0 Critical issues such as a build break or regression team-tool Owned by Flutter Tool team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants