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

Error creating symbolic link during swift run on Windows #76233

Open
timsneath opened this issue Sep 4, 2024 · 0 comments
Open

Error creating symbolic link during swift run on Windows #76233

timsneath opened this issue Sep 4, 2024 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@timsneath
Copy link

Description

On a Windows 11 machine, either swift build or swift run work the first time, but on repeated execution they report an error:

Build of product 'win32test' complete! (0.10s)
warning: unable to create symbolic link at C:\src\scratch.build\debug: Error Domain=NSCocoaErrorDomain Code=516 "A file with the same name already exists."

image

Reproduction

Run:

swift package init --type executable --name win32test
swift build
swift run

Expected behavior

Expected that repeated swift run invocations are idempotent.

Environment

Swift version 6.0-dev (LLVM c3efe9282719c35, Swift b163fed)
Target: aarch64-unknown-windows-msvc

Additional information

No response

@timsneath timsneath added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant