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

[Bug] About dependencies #32

Closed
shinriyo opened this issue Jul 5, 2020 · 9 comments
Closed

[Bug] About dependencies #32

shinriyo opened this issue Jul 5, 2020 · 9 comments
Labels
bug Something isn't working

Comments

@shinriyo
Copy link
Contributor

shinriyo commented Jul 5, 2020

Describe the bug

it is happened.

Running "flutter pub upgrade" in my_app...                      

Because hooks_riverpod >=0.1.0 depends on flutter_hooks ^0.10.0 and my_app depends on flutter_hooks ^0.11.0, hooks_riverpod >=0.1.0 is forbidden.
So, because my_app depends on hooks_riverpod ^0.3.0, version solving failed.
pub upgrade failed (1; So, because my_app depends on hooks_riverpod ^0.3.0, version solving failed.)

To Reproduce

Modify pubspec.yaml below and excute flutter pub upgrade.

environment:
  sdk: ">=2.7.0 <3.0.0"
  flutter: ">= 1.17.0"

dependencies:
  flutter:
    sdk: flutter

  flutter_hooks: ^0.11.0
  hooks_riverpod: ^0.3.0

<Please add a small sample to that can be executed to reproduce the problem. As a general rule, 100 lines is the maximum>

it is about yaml. So, no code.

Expected behavior

downgrade flutter_hooks works, but it opponents for document.

  # flutter_hooks: ^0.11.0
  flutter_hooks: ^0.10.0
  hooks_riverpod: ^0.3.0
@shinriyo shinriyo added the bug Something isn't working label Jul 5, 2020
@shinriyo
Copy link
Contributor Author

shinriyo commented Jul 5, 2020

It was not helpful.

flutter update-packages
rm pubspec.lock 
flutter clean

@rrousselGit
Copy link
Owner

What if you force hooks_riverpod's version to 0.3.1?

@shinriyo
Copy link
Contributor Author

shinriyo commented Jul 5, 2020

@rrousselGit hello. Thank you for replying.
Do you mean to put the original file directory without writing hooks_riverpod: ^0.3.1 in the pubspec.yaml?

@rrousselGit
Copy link
Owner

What I mean is, the version of Riverpod that supports hooks 0.11.0 is the version 0.3.1

But your pubspec specifies 0.3.0

@shinriyo
Copy link
Contributor Author

shinriyo commented Jul 5, 2020

59C3D5CF-2CBE-433B-AB78-21190892A280
Yes, it is.
Because, I just referred to the official document.
Is it typo?
If the document is version controlled by github, I can send pull-request.

@rrousselGit
Copy link
Owner

Indeed, I've changed fix the document

@shinriyo
Copy link
Contributor Author

shinriyo commented Jul 6, 2020

7A94B0AF-E7B2-468F-8491-B4D4FDC40232

Wow! How quick works isn't it?
Thank you. I will close the issue.

@shinriyo shinriyo closed this as completed Jul 6, 2020
@shinriyo
Copy link
Contributor Author

shinriyo commented Jul 6, 2020

I'm sorry.
However, 0.3.1 has not released yet.
https://pub.dev/packages/hooks_riverpod#-installing-tab-

Screen Shot 2020-07-06 at 11 50 09

I reopened the Issued until release.

@shinriyo shinriyo reopened this Jul 6, 2020
@rrousselGit
Copy link
Owner

Oops, done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants