You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use idiomatic location for security directory and update location of configuration directory
motivation: use idiomatic location for security directory on macOS
changes:
* allow users to customize security directory location with new --security-path CLI option
* on macOS use <user>/Library/org.swiftpm/security for security files and symlink from ~/.swiftpm/security
* move configuration directory from <user>/Library/org.swiftpm to <user>/Library/org.swiftpm/configuration
* add migration code from old configuraiton location to new one
* add and adjust tests
* update docker setup for new locationis
// in the case where ~/.swiftpm/configuration is not the idiomatic location (eg on macOS where its /Users/<user>/Library/org.swift.swiftpm/configuration)
98
+
if idiomaticConfigurationDirectory !=self.dotSwiftPMConfigurationDirectory {
99
+
// copy the configuration files from old location (eg /Users/<user>/Library/org.swift.swiftpm) to new one (eg /Users/<user>/Library/org.swift.swiftpm/configuration)
100
+
// but leave them there for backwards compatibility (eg older xcode)
observabilityScope?.emit(warning:"Usage of \(oldConfigDirectory.appending(component: item)) has been deprecated. Please delete it and use the new \(idiomaticConfigurationDirectory.appending(component: item)) instead.")
109
+
tryself.copy(from: oldConfigDirectory.appending(component: item), to: idiomaticConfigurationDirectory.appending(component: item))
110
+
}
111
+
}
112
+
}
113
+
// in the case where ~/.swiftpm/configuration is the idiomatic location (eg on Linux)
114
+
}else{
115
+
// copy the configuration files from old location (~/.swiftpm/config) to new one (~/.swiftpm/configuration)
116
+
// but leave them there for backwards compatibility (eg older toolchain)
observabilityScope?.emit(warning:"Usage of \(oldConfigDirectory.appending(component: item)) has been deprecated. Please delete it and use the new \(idiomaticConfigurationDirectory.appending(component: item)) instead.")
125
+
tryself.copy(from: oldConfigDirectory.appending(component: item), to: idiomaticConfigurationDirectory.appending(component: item))
0 commit comments