-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error creating symbolic link during swift run
on Windows
#7965
Comments
I have the same problem with release version of Swift 6.0 toolchain. Also it creates symlinks without "list content" permission. |
From what I've seen so far these links aren't really used. You can access the build results using the toolchain triple and then debug/release. But yes, disconcerting. It's on my list of Windows bugs to look at. Unfortunately there are a few more ahead of it.
That's a good clue. Thanks! |
Digging into this now. This might be a bug in how swift-foundation is creating the symlink on Windows. |
Yup, FileManager is incorrectly creating the link. Details here: swiftlang/swift-foundation#928 I'll keep this open until we have it resolved. I can link it absolute but then it wouldn't allow the directory to be moved which might be OK, but let's see how that issue progresses. |
me too |
Sounds like a fix is on the way to swift-foundation. I'll wait for that and make sure it fixes this. |
The fix is in. Tested with the Sept 24 CI build. Best wait until an official development snapshot is released to try it. |
Description
On a Windows 11 machine, either
swift build
orswift run
work the first time, but on repeated execution they report an error:Reproduction
Run:
Expected behavior
Expected that repeated
swift run
invocations are idempotent.Environment
Swift version 6.0-dev (LLVM c3efe9282719c35, Swift b163fed2b3101e0)
Target: aarch64-unknown-windows-msvc
Additional information
No response
The text was updated successfully, but these errors were encountered: