arcnmx / cargo-clippy

cargo clippy
MIT License
68 stars 11 forks source link

follow symlinks to find the executable #2

Closed durka closed 9 years ago

durka commented 9 years ago

The README suggests you can symlink the executable into your path, but it doesn't work. This patch follows symlinks until it finds the real executable.

arcnmx commented 9 years ago

Hm, what OS are you on? It works fine for me on Linux 4.1

How about using std::fs::canonicalize instead? Unstable, but seems cleaner if it works.

durka commented 9 years ago

OSX 10.9.5 here.

durka commented 9 years ago

I changed it to use fs::canonicalize.