Open Joannis opened 1 year ago
I advice adding an extra log output #if os(Windows)
, with a suggestion to enable the developer mode on Windows. Since this is the most likely issue.
cc @compnerd
Hmm, I never considered that. I do like the suggestion though. Thanks!
Description
On Windows (10) systems, it's possible that someone has installed git but has not yet enabled Developer Mode. This causes issues with git creating symlinks during checkout. This is specifically occurring in this checkout command.
Expected behavior
I expect the git command to fail, but it would be nice for junior/hobby developers if the reason could be explained more clearly - on Windows platforms.
Actual behavior
The git command fails, failing the SPM build. But there's no real suggestion on how to fix this.
Steps to reproduce
From Windows (VSCode + Swift Server Workgroup Plugin + Swift 5.7.2)
swift package init --type=executable
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.7.1
Swift & OS version (output of
swift --version && uname -a
)compnerd.org Swift version 5.7.2 (swift-5.7.2-RELEASE) Target: x86_64-unknown-windows-msvc