-
Notifications
You must be signed in to change notification settings - Fork 1.4k
PackagePlugin is entirely broken #6851
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
Comments
Isn't this the same as #5817? |
Yes, #5817 might help paper over the underlying issue a bit. |
I guess |
IMO, the correct solution is probably to yank |
Yeah, I agree, this is best resolved by use of |
Due to RFC8089 compliance changes for Foundation.URL in Swift 6, URL.path does _NOT_ behave as one might expect, producing a path with a leading slash which will be interpreted by Windows as relative. Closes #6851
Due to RFC8089 compliance changes for Foundation.URL in Swift 6, URL.path does _NOT_ behave as one might expect, producing a path with a leading slash which will be interpreted by Windows as relative. Closes #6851
Due to RFC8089 compliance changes for Foundation.URL in Swift 6, URL.path does _NOT_ behave as one might expect, producing a path with a leading slash which will be interpreted by Windows as relative. Closes #6851
Due to RFC8089 compliance changes for Foundation.URL in Swift 6, URL.path does _NOT_ behave as one might expect, producing a path with a leading slash which will be interpreted by Windows as relative. Closes #6851
Description
PackagePlugin.Path
has an unusable ctor:The paths in SPM are fundamentally unusable as they do not represent a real path but some fabricated reality. They drop the drive and the resulting path is unusable. This prevents the use of build tools as the input is never found and ignored by SPM. There is currently no way to reconstruct the true file system path within the context of the plugin, which prevents build plugins from being usable.
Expected behavior
Paths provided to the plugin would be real paths with drives.
Actual behavior
Paths provided to the plugin are relative to the current drive.
Steps to reproduce
No response
Swift Package Manager version/commit hash
No response
Swift & OS version (output of
swift --version ; uname -a
)No response
The text was updated successfully, but these errors were encountered: