Description:
Trying to run swiftly use <version> from within a newly created Swift package will not create a .swift-version file. I have to either create the file myself or initialize a git repository before invoking Swiftly.
Steps to reproduce:
- Create a folder for a new Swift package.
- Initialize the package with
swift package init.
- Run
swiftly use 6.2.0 from within the newly created and initialized folder.
Swiftly will then update the global default toolchain to 6.2.0 without creating a .swift-version file.
Expected Behavior:
Swiftly should ask me for permission to create a .swift-version file in the same directory as my Package.swift.