Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mirrors config migration should not modify user's file (#3901)
Motivation: The migration from `.swiftpm/config` to `.swiftpm/configuration/mirrors.json` moves `.swiftpm/config` and leads user to think that the file gets deleted. (rdar://85917746) Modifications: - Copy `.swiftpm/config` to `.swiftpm/configuration/mirrors.json` instead of moving it. - Emit warning that `.swiftpm/config` has been deprecated. - Don't perform the migration if `.swiftpm/configuration/mirrors.json` already exists to prevent error. (rdar://85917836)
- Loading branch information