Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp: add safeguards when searching for vendor root.
With certain yaegi configuration on Windows, the loop in `previousRoot` can be infinite, because it fails to recognize driver letters as root. This change adds a few more safeguards: checks path prefix earlier and checks if `filepath.Dir` produces an empty path.
- Loading branch information