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

Failure message for flutter dependency is confusing #2992

Closed
eseidel opened this issue May 12, 2021 · 2 comments
Closed

Failure message for flutter dependency is confusing #2992

eseidel opened this issue May 12, 2021 · 2 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@eseidel
Copy link

eseidel commented May 12, 2021

Environment

  • pub version or flutter pub version:
    Dart SDK version: 2.14.0-74.0.dev (dev) (Mon May 3 05:56:14 2021 -0700) on "windows_x64"
  • OS version:
[√] Flutter (Channel master, 2.3.0-2.0.pre.90, on Microsoft Windows [Version 10.0.19041.928], locale en-US)
    • Flutter version 2.3.0-2.0.pre.90 at C:\Users\micro\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f82dedd5b9 (27 hours ago), 2021-05-10 15:22:50 -0700
    • Engine revision f5b97d0b23
    • Dart version 2.14.0 (build 2.14.0-74.0.dev)
  • Are you using the Chinese community mirror or a corporate firewall?
    Nope.

Problem

Attempting to fetch a flutter-depending package using dart pub prints a confusing error message:

[flutter_eng_cycle_times] dart pub get
Resolving dependencies...
Because every version of dio_http_cache from git depends on flutter any from sdk which is forbidden, dio_http_cache from git is forbidden.
So, because flutter_eng_cycle_times depends on dio_http_cache from git, version solving failed.

Flutter users should run `flutter pub get` instead of `pub get`.
exit code 69

I originally thought it was relating to my "git" dependency or the fact that it was "flutter any" rather than a specific flutter version or something.

What the real error is is the last line. It's telling me that because this package depend on Flutter I need to use a different flavor of pub to fetch it. :(

@sigurdm
Copy link
Contributor

sigurdm commented May 12, 2022

This might be solved by #3196

We are still a bit unsure if that is the right fix - the logic of the solver is not clear to us here.

@sigurdm sigurdm added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label May 12, 2022
@sigurdm
Copy link
Contributor

sigurdm commented Apr 17, 2023

Closing this for now, assuming it is fixed.

@sigurdm sigurdm closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants