Skip to content

[SR-15549] Relative paths to local dependencies not working on Windows #4373

@swift-ci

Description

@swift-ci
Previous ID SR-15549
Radar None
Original Reporter svanimpe (JIRA User)
Type Bug
Environment

Swift 5.5.1 on Windows 11

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: d19a8c53abcfbf8e98772ec2726d18dc

duplicates:

  • SR-13996 [Windows] Package dependency with path to parent dir resolves incorrectly

Issue Description:

When I specify a local dependency as .package(path: "../other-package") (or using a double backslash instead of a forward slash) the .. seems to get ignored.

The output of swift package describe --type json and swift package dump-package shows the path to other-package as:

C:\Users\me\path-to-my-package\other-package

and not:

C:\Users\me\path-to\other-package

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions