@@ -581,35 +581,6 @@ public class Workspace {
581
581
try saveState ( )
582
582
}
583
583
584
- /// Create a `Packages` subdirectory.
585
- ///
586
- /// For migration purposes, creates a "Packages" subdirectory matching the
587
- /// historical behavior of the package manager containing symlinks to the
588
- /// checkouts for each repository and version.
589
- //
590
- // FIXME: Eliminate this behavior.
591
- func createPackagesDirectory( _ graph: PackageGraph ) throws {
592
- let packagesDirPath = rootPackagePath. appending ( component: " Packages " )
593
-
594
- // Remove any existing packages directory.
595
- _ = try ? removeFileTree ( packagesDirPath)
596
- try makeDirectories ( packagesDirPath)
597
-
598
- // Create links for each versioned dependency.
599
- for package in graph. packages {
600
- if package == graph. rootPackage {
601
- continue
602
- }
603
-
604
- let manifest = package . manifest
605
- let dependency = dependencyMap [ RepositorySpecifier ( url: manifest. url) ] !
606
- if let version = dependency. currentVersion {
607
- let name = " \( manifest. package . name) - \( version) "
608
- try createSymlink ( packagesDirPath. appending ( component: name) , pointingAt: manifest. path. parentDirectory, relative: true )
609
- }
610
- }
611
- }
612
-
613
584
/// Loads and returns the root manifest.
614
585
private func loadRootManifest( ) throws -> Manifest {
615
586
return try manifestLoader. load ( packagePath: rootPackagePath, baseURL: rootPackagePath. asString, version: nil )
0 commit comments