-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Cleanup Workspace Module #2970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup Workspace Module #2970
Conversation
Create ResolvedFileWatcher.swift
@swift-ci please smoke test |
This doesn't look related, let's re-run. |
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this refactoring. This looks good to me.
@swift-ci please smoke test OS X platform |
@swift-ci please smoke test Linux platform |
* Extract ManagedDependency into separate file * Extract ManagedArtifact into separate file * Move declaration of Workspace.DependencyManifests * Move APIs out of misc.swift Create ResolvedFileWatcher.swift * Move ManagedArtifacts and ManagedDependencies declarations * Move declaration of ToolsVersion.zeroedPatch instance method * Move Workspace.DependencyManifests declaration to TSCUtilities Functions extension
Working on the Swift Package Manager client implementation for package registry support (#2967), it took some time for me to understand the functionality of the Workspace module — inn part, because some APIs are declared in places I didn't expect. For example, files often contain declarations or extensions for unrelated types at the end.
This PR extracts some standalone types into separate files and moves other declarations around to be closer to related APIs.
For additional context, these commits were cherry picked from my local development branch. Rather than risk a monolithic, difficult-to-merge PR at the very end of the process, I'd like to take a more incremental approach and break up changes into manageable pieces.