-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor RelativePath to allow late stage canonicalization in support of windows #5910
Conversation
companion: swiftlang/swift-tools-support-core#369 |
@compnerd should we rekindle this + the TSC PR so we can support Windows with less patches? |
@tomerd yes please! I would like to get this sorted out because it enables the test suite on Windows. |
@tomerd could you rebase this please? |
f3a4016
to
18d81fb
Compare
@compnerd this is updated |
18d81fb
to
1b66afd
Compare
swiftlang/swift-tools-support-core#369 @swift-ci smoke test |
@@ -1832,7 +1833,7 @@ class PackageBuilderTests: XCTestCase { | |||
PackageBuilderTester(manifest, path: "/pkg", in: fs) { _, diagnostics in | |||
diagnostics.check(diagnostic: "target path \'~/foo\' is not supported; it should be relative to package root", severity: .error) | |||
} | |||
} | |||
}*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neonichu @abertelrud to confirm, per our discussion swiftlang/swift-tools-support-core#369 (comment) this is is correct to be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems right to me.
a5a5c75
to
0a56e0c
Compare
swiftlang/swift-tools-support-core#369 @swift-ci smoke test |
1 similar comment
swiftlang/swift-tools-support-core#369 @swift-ci smoke test |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test macOS |
Local run of the test suite:
|
Overall, I think that if we fix the three assertion failures, this might not be a bad point to draw in the sand. |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test Windows |
@compnerd are these test error on Windows? I dont see them on linux / mac. if so, which specific failures are the ones you are more worried about? some of them seem to be unrelated to this change |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test windows |
@compnerd looks like the windows build is broken? |
Yeah, swiftlang/swift#65198 should fix it |
Please test with following PRs: @swift-ci please test Windows platform |
Please test with following PRs: @swift-ci please test Windows platform |
@swift-ci please smoke test |
Please test with following PRs: @swift-ci please smoke test |
self hosted expected to fail since they do not support cross repo testing |
swiftlang/swift#65183 @swift-ci smoke test linux |
swiftlang/swift#65183 @swift-ci smoke test macos self-hosted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, but I am not sure I like the use of try!
outside of tests. I called out a couple of specific places where we should change it, but I'm generally slightly against it. It seems too easy for a change to make the use unsafe without actually changing the call sites to a proper throws.
65f21f0
to
fac1c64
Compare
swiftlang/swift-tools-support-core#369 @swift-ci smoke test macos self-hosted |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test windows |
self-hosted expected to fail since they do not support cross repo testing |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test macOS |
swiftlang/swift-tools-support-core#369 @swift-ci smoke test windows |
motivation: delay canonicalization of relative path to the construction of absolute path from it, to better fit how windows paths work
changes: