swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

`.swift-version` is placed wherever `swiftly init` is first run

Open SimplyDanny opened this issue 9 months ago • 1 comments

Running swiftly init from an arbitrary location places the .swift-version file there even though this isn't even a Swift project.

Even if it was a Swift project, I don't think placing this file there by default is a good pattern. It should be an entirely optional feature.

SimplyDanny avatar Mar 29 '25 11:03 SimplyDanny

Thanks for reporting this. The init command shouldn't be adding the .swift-version files automatically.

When using the use subcommand, it prompts before it does this, and only tries this if you are in a git repository at the time.

cmcgee1024 avatar Mar 29 '25 16:03 cmcgee1024