Skip to content

[CP] Pub: Fix to using path dependencies in git dependencies on windows #56116

@sigurdm

Description

@sigurdm

Commit(s) to merge

https://dart-review.googlesource.com/c/sdk/+/373861 (rolling dart-lang/pub#4315)

Target

beta

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/373861

Issue Description

On windows the path would be written with a \ instead of / the pubspec lock, making it incompatible with the mac/linux pubspec.lock

What is the fix

Always use '/' in pubspec.lock for path-dependencies in git-dependencies.

Why cherry-pick

Windows users using the path-dependencies from git-dependencies feature are impacted, and will get an inconsistent pubspec.lock.

Risk

Low

Issue link(s)

dart-lang/pub#4314

Extra Info

We could consider also picking this to stable, but given that this was only discovered late, it might not be a broadly used feature, and we can get away with a beta CP.

Metadata

Metadata

Labels

cherry-pick-reviewIssue that need cherry pick triage to approve

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions