Skip to content

[xdg_directories] [Linux] Depends on process 4.2.4 which is not compatible with file 7.x.x #129543

@Gustl22

Description

@Gustl22

Is there an existing issue for this?

Steps to reproduce

Use a project with file: ^7.0.0 and at the same time xdb_directories: ^1.0.0 or path_provider: ^2.0.0.

This affects all Linux implementations, e.g. in path_provider, xdg_directories, as one can't upgrade to file >= 7.0.0

Expected results

Build successfully with file: ^7.0.0

Actual results

Because path_provider_linux >=2.1.8 depends on xdg_directories >=0.2.0 <2.0.0 and path_provider_linux >=2.0.0 <2.1.8 depends on xdg_directories ^0.2.0, path_provider_linux >=2.0.0 requires xdg_directories >=0.2.0 <2.0.0.
And because path_provider >=2.0.8 depends on path_provider_linux ^2.0.1, path_provider >=2.0.8 requires xdg_directories >=0.2.0 <2.0.0.
And because xdg_directories >=0.2.0 depends on process ^4.0.0 which depends on file ^6.0.0, path_provider >=2.0.8 requires file ^6.0.0.
So, because audioplayers_example depends on both file ^7.0.0 and path_provider ^2.0.12, version solving failed.

Same for integration_test

Because every version of integration_test from sdk depends on file 6.1.4 and example depends on file ^7.0.0, integration_test from sdk is forbidden.
So, because example depends on integration_test from sdk, version solving failed.

Code sample

Code sample
# pubspec.yaml
#...
dependencies:
  flutter:
    sdk: flutter
  http: '>=0.13.1 <2.0.0'
  file: ^7.0.0
  path_provider: ^2.0.12
  provider: ^6.0.5

dev_dependencies:
  flutter_test:
    sdk: flutter
#  integration_test:
#    sdk: flutter

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.10.2, on Microsoft Windows [Version 10.0.22631.1900], locale de-DE)
    • Flutter version 3.10.2 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (5 weeks ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.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:\src\android\Sdk
    • Platform android-33, build-tools 34.0.0
    • ANDROID_HOME = C:\src\android\Sdk
    • Java binary at: C:\Program Files\Java\jdk-17.0.1\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2022 17.5.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
    • Visual Studio Build Tools 2022 version 17.5.33516.290
    • Windows 10 SDK version 10.0.22621.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.1
    • Flutter plugin version 74.0.4
    • Dart plugin version 231.9065

[√] VS Code (version 1.77.3)
    • VS Code at C:\Users\Gustl\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

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

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

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions