File tree Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -152,22 +152,3 @@ public struct SwiftPackageRegistryTool: ParsableCommand {
152
152
}
153
153
}
154
154
}
155
-
156
- // MARK: -
157
-
158
- private extension SwiftTool {
159
- func getRegistriesConfig( ) throws -> Workspace . Configuration . Registries {
160
- let localRegistriesFile = try Workspace . DefaultLocations. registriesConfigurationFile ( forRootPackage: self . getPackageRoot ( ) )
161
-
162
- let workspace = try getActiveWorkspace ( )
163
- let sharedRegistriesFile = workspace. location. sharedConfigurationDirectory. map {
164
- Workspace . DefaultLocations. registriesConfigurationFile ( at: $0)
165
- }
166
-
167
- return try . init(
168
- localRegistriesFile: localRegistriesFile,
169
- sharedRegistriesFile: sharedRegistriesFile,
170
- fileSystem: localFileSystem
171
- )
172
- }
173
- }
Original file line number Diff line number Diff line change @@ -461,6 +461,21 @@ public class SwiftTool {
461
461
return newPath
462
462
}
463
463
464
+ func getRegistriesConfig( ) throws -> Workspace . Configuration . Registries {
465
+ let localRegistriesFile = try Workspace . DefaultLocations. registriesConfigurationFile ( forRootPackage: self . getPackageRoot ( ) )
466
+
467
+ let workspace = try getActiveWorkspace ( )
468
+ let sharedRegistriesFile = workspace. location. sharedConfigurationDirectory. map {
469
+ Workspace . DefaultLocations. registriesConfigurationFile ( at: $0)
470
+ }
471
+
472
+ return try . init(
473
+ localRegistriesFile: localRegistriesFile,
474
+ sharedRegistriesFile: sharedRegistriesFile,
475
+ fileSystem: localFileSystem
476
+ )
477
+ }
478
+
464
479
func getAuthorizationProvider( ) throws -> AuthorizationProvider ? {
465
480
// currently only single provider: netrc
466
481
return try self . getNetrcConfig ( ) ? . get ( )
You can’t perform that action at this time.
0 commit comments