Commit b94668a
committed
Don't follow the swiftly symlink when determining in use toolchain
When swiftly is installed via Homebrew it is added to the path at a
location like `/opt/homebrew/bin/swiftly`, which is a symlink to the
brew cellar located at `/opt/homebrew/bin/Cellar/swiftly/1.1.0/bin/`
When printing the in use toolchain location with `swiftly use
--print-location` we were launching swiftly with the realpath of the
symlink, which caused Swiftly to print the "swiftly is unlinked" warning
message before printing the toolchain location.
The extension went on to take this message and parse it as a path,
causing the extension activation to hang.
Instead of using this realpath when invoking swiftly to get the
toolchain path, if we determine the use is using swiftly just invoke it
normally using `swiftly` instead of using the full path.
Issue: #19661 parent 1d723b3 commit b94668a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| |||
0 commit comments