Swift not found
IshaShah2806 opened this issue · 7 comments
Are you using WSL or WSL2?
At any rate it's curious that sh
drops PATH. Can you replace let compilationResult = "swift build".shOutput()
with let compilationResult = "echo $PATH && false".shOutput()
and let me know the output?
Ah. Gotcha, always need to confirm no one is using WSL1. It's too unpredictable. :)
The issue is your PATH has a literal tilde, not your home folder. Can you replace ~/swift-5.3.3-RELEASE-ubuntu20.04/usr/bin
with an absolute path where you're setting the PATH variable? In this case, it would be /home/isha/swift-5.3.3-RELEASE-ubuntu20.04/usr/bin
, I think.
That's so weird. I'll have to come back to this later- we'll probably need a workaround.
try export PATH=home/isha/Fault/swift-5.3.3-RELEASE-ubuntu20.04/usr/bin
then swift ./install.swift
For future searchers: please use the AppImage.