You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initializing a URL from a unix file path in Swift 6 on Linux now returns a non-nil value (an empty String). In earlier Swift versions and on macOS it returns nil.
On Linux Swift 5.10:
1> import Foundation
2> let u = Foundation.URL(string: "unix:///tmp/file")
[snip]
3> print(u!.host)
nil
On Linux Swift 6.0.1:
1> import Foundation
2> let u = Foundation.URL(string: "unix:///tmp/file")
[snip]
3> print(u!.host)
Optional("")