Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mirrors config migration should not modify user's file #3901

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented Dec 2, 2021

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)

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)
@yim-lee
Copy link
Contributor Author

yim-lee commented Dec 2, 2021

@swift-ci please smoke test

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants