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

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

Closed
swift-ci opened this issue Dec 27, 2020 · 1 comment
Assignees

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-13996
Radar None
Original Reporter STREGAsGate (JIRA User)
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

5.3-Dev

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug, Windows
Assignee @compnerd
Priority Medium

md5: 68980f9e35e128b0aa822a3742dcbbaa

is duplicated by:

  • SR-15549 Relative paths to local dependencies not working on Windows

Issue Description:

The path of .package(path: "../Project1Library") from within package "Project1App" doesn't resolve correctly.

Real path: G:\RootDirectory\My Projects\Project1\Project1Library
Build path: G:\RootDirectory\My Projects\Project1\Project1App\Project1Library

error: the package at 'G:\RootDirectory\My Projects\Project1\Project1App\Project1Library' cannot be accessed (Error Domain=NSCocoaErrorDomain Code=260 "The file doesnΓÇÖt exist.")

I've attached a functioning example. Open RootDirectory in VSCode. A defualt build configuration is included for windows, mac, and linux.

I tested the example on Windows and macOS, with no issues on macOS and the error on Windows.

@compnerd
Copy link
Collaborator

I believe that this should be fixed in 5.6.1 and on main (with the 4/4 snapshot).

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants