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

Outdated test_api in sdk package integration_test is incompatible with test package from dart #144694

Closed
kay4ik opened this issue Mar 6, 2024 · 4 comments
Labels
r: fixed Issue is closed as already fixed in a newer version

Comments

@kay4ik
Copy link

kay4ik commented Mar 6, 2024

Steps to reproduce

  1. Upgrade to flutter 3.19.2
  2. add following packages to dev_dependencies:
flutter_test:
  sdk: flutter
integration_test:
  sdk: flutter
test: ^1.25.2 #latest
  1. run flutter pub get

Expected results

Flutter installs all packages normally without a conflict with a dart package.

Actual results

Following error occurs:

Resolving dependencies...
Note: test_api is pinned to version 0.6.1 by integration_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because test >=1.25.0 depends on test_api 0.7.0 and every version of integration_test from sdk depends on test_api 0.6.1, test >=1.25.0 is incompatible with integration_test from sdk.
So, because schunk_cc depends on both integration_test from sdk and test ^1.25.2, version solving failed.

Code sample

Code sample

Content of pubspec.yaml

dev_dependencies:
  flutter_test:
    sdk: flutter
  integration_test:
    sdk: flutter
  test: ^1.25.2

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.19045.4046], locale de-DE)
    • Flutter version 3.19.2 on channel stable at C:\Users\R081094\dev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7482962148 (8 days ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\R081094\AppData\Local\Android\Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\R081094\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34221.43
    • Windows 10 SDK version 10.0.20348.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.87.0)
    • VS Code at C:\Users\R081094\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.84.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.4046]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 122.0.6261.95
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 122.0.2365.66

[√] Network resources
    • All expected network resources are available.

• No issues found!
@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Mar 7, 2024
@darshankawar
Copy link
Member

@kay4ik
Although I do see the same behavior on stable, but it seems to work properly on master, maybe due to this fix: #141427 that you can check at your end and confirm.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 7, 2024
@matt-hall-zory
Copy link

I have a similar issue but with meta being pinned to 1.11.0 by integration_test

@kay4ik
Copy link
Author

kay4ik commented Mar 13, 2024

@darshankawar
I can confirm that this issue is fixed on master :)

Thank you!

@kay4ik kay4ik closed this as completed Mar 13, 2024
@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 13, 2024
@darshankawar darshankawar added r: fixed Issue is closed as already fixed in a newer version and removed in triage Presently being triaged by the triage team labels Mar 14, 2024
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 Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: fixed Issue is closed as already fixed in a newer version
Projects
None yet
Development

No branches or pull requests

3 participants