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

null safe versions of logging and test packages fail the version solver. #92

Closed
wstrange opened this issue Nov 26, 2020 · 2 comments
Closed

Comments

@wstrange
Copy link

I can't seem to find a pubspec combination that satisfies the solver for logging and test:

name: test_null
description: A sample command-line application.

environment:
  sdk: '>=2.10.0-0 <3.0.0'

dependencies:
  logging: "^1.0.0-nullsafety"

dev_dependencies:
  test: ^1.16.0-nullsafety

@wstrange wstrange changed the title null safety and test package fails solver null safe versions of logging and test packages fail the version solver. Dec 8, 2020
@NebulaFox
Copy link

NebulaFox commented Jan 23, 2021

I found the same problem while working on a flutter app.

dependencies:
  logging: ^1.0.0-nullsafety

dev_dependencies:
  integration_test:
    sdk: flutter

Resulting in the error message:

[App] flutter pub get
Running "flutter pub get" in App...                           
Because every version of integration_test from sdk depends on logging 0.11.4 and App depends on logging ^1.0.0-nullsafety, integration_test from sdk is forbidden.

So, because App depends on integration_test any from sdk, version solving failed.
pub get failed (1; So, because App depends on integration_test any from sdk, version solving failed.)
exit code 1

@wstrange
Copy link
Author

Looks like the latest update fixed this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants