gearboxworks / launch

Running in Docker made trivial
2 stars 0 forks source link

Fix the "not in PATH" bug on Windows #72

Closed mikeschinkel closed 3 years ago

mikeschinkel commented 3 years ago

When you ran launch.exe on Windows from the same directory that launch.exe was contained in — e.g. ~/.launch/bin — then Launch throws an error effectively saying "not in PATH."

The bug occurred in cmd.IsInstalled() because exec.LookPath() only returned "launch.exe" and not a full path when the file was in the current directory. This differs from exec.LookPath()'s behavior on macOS.

Ref#: 71