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
Adds two new commands, `swiftly unlink` and `swiftly link`, which
will disable and reenable swiftly's management of the active toolchain.
The `unlink` command removes the symlinks to toolchain binaries in the
swiftly bin directory that is in the user's path. This allows the rest
of the `$PATH` to be searched for available toolchain installations,
falling back to the system default. On macOS with Xcode installed this
has the effect of falling back to the toolchain in the user's installed
Xcode.
The `link` command reinstates the symlinks to the `inUse` toolchain,
which allows swiftly to resume management of the active toolchain.
if case let(_, result)=tryawaitselectToolchain(ctx, config:&config),
86
-
case let.swiftVersionFile(_, sel, error)= result
87
-
{
88
-
iflet sel = sel {
89
-
selector = sel
90
-
}elseiflet error = error {
91
-
throw error
92
-
}else{
93
-
throwSwiftlyError(message:"Internal error selecting toolchain to install.")
94
-
}
95
-
}else{
96
-
throwSwiftlyError(message:"Swiftly couldn't determine the toolchain version to install. Please set a version like this and try again: `swiftly install latest`")
if case let(_, result)=tryawaitselectToolchain(ctx, config:&config),
197
+
case let.swiftVersionFile(_, sel, error)= result {
198
+
iflet sel = sel {
199
+
selector = sel
200
+
}elseiflet error = error {
201
+
throw error
202
+
}else{
203
+
throwSwiftlyError(message:"Internal error selecting toolchain to install.")
204
+
}
205
+
}else{
206
+
throwSwiftlyError(message:"Swiftly couldn't determine the toolchain version to install. Please set a version like this and try again: `swiftly install latest`")
0 commit comments