Closed
Description
Environment
- Dart version (run
dart --version
):Dart SDK version: 3.4.3 (stable) (Tue Jun 4 19:51:39 2024 +0000) on "windows_x64"
- OS kind and version (e.g. "Windows 10, version 1809" or "macOS 12.4"): Windows 11
- Are you using the Chinese community mirror or a corporate firewall? No
Maybe related to #449.
Problem
I use path dependencies in a git (see https://github.com/LinwoodDev/dart_pkgs/blob/b440166c38b927b6520f2835ceffb860b88faa30/packages/material_leap/pubspec.yaml#L18).
When using
material_leap:
git:
url: https://github.com/LinwoodDev/dart_pkgs.git
ref: 0e04c453c2b6d4aa499f79e54bb1c0b7a9b2c42c
path: packages/material_leap
The .lock file has:
dart_leap:
dependency: transitive
description:
path: "packages\\dart_leap"
ref: "0e04c453c2b6d4aa499f79e54bb1c0b7a9b2c42c"
resolved-ref: "0e04c453c2b6d4aa499f79e54bb1c0b7a9b2c42c"
url: "https://github.com/LinwoodDev/dart_pkgs.git"
source: git
version: "1.0.0"
Expected behavior
It should use path: "packages/dart_leap"
Actual behavior
It uses the backslash on windows.
--trace output
There is no error, it only fetches the dart_leap packages every time when using flutter pub get
: Changed 1 dependency!
.