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
Merge updates from release/1.0 to the main branch (#248)
* Update swiftly version to 1.0.0 and add upgrade routine for 0.4.0 (#237)
* Make updates better and more resilient
Put a check in-place to unset the global default toolchain if it is no longer installed
Set the global default to the installed toolchain if it is not set
Add full toolchain selection resolution to the update operation resolve update parameters
Fix the use command and toolchain selection routine to consider a global default set to a toolchain that is not installed as no selection at all
Add check for the physical presence of a toolchain to proxy so that it prevents circularity errors and provides an actionable message
* Allow uninstalling of partially installed toolchains from config.json
* Adjust error messages
Add test cases
Control verbosity of uninstall operation on macOS and other platforms
* Make version changes for the main branch, and add upgrade path
* Fix wrapping logic in init command to check for 1.0.x release
* Remove hyphen from the swiftly version suffix
* Fix version check in init
Copy file name to clipboardexpand all lines: Sources/Swiftly/Proxy.swift
+1-1
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ public enum Proxy {
53
53
}
54
54
55
55
guardlet toolchain = toolchain else{
56
-
throwSwiftlyError(message:"No swift toolchain could be selected from either from a .swift-version file, or the default. You can try using `swiftly install <toolchain version>` to install one.")
56
+
throwSwiftlyError(message:"No installed swift toolchain is selected from either from a .swift-version file, or the default. You can try using one that's already installed with `swiftly use <toolchain version>` or install a new toolchain to use with `swiftly install --use <toolchain version>`.")
57
57
}
58
58
59
59
// Prevent circularities with a memento environment variable
throwSwiftlyError(message:"No swift toolchain could be selected from either from a .swift-version file, or the default. You can try using `swiftly install <toolchain version>` to install one.")
89
+
throwSwiftlyError(message:"No installed swift toolchain is selected from either from a .swift-version file, or the default. You can try using one that's already installed with `swiftly use <toolchain version>` or install a new toolchain to use with `swiftly install --use <toolchain version>`.")
throwSwiftlyError(message:"Toolchain \(toolchain) could not be located. You can try `swiftly uninstall \(toolchain)` to uninstall it and then `swiftly install \(toolchain)` to install it again.")
146
+
}
144
147
varnewEnv=ProcessInfo.processInfo.environment
145
148
146
149
// The toolchain goes to the beginning of the PATH
0 commit comments