This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use realpath instead of readlink in binary wrappers
Summary: Readlink directly returns the target of a symlink. If the symlink is relative, readlink only returns the relative path. This path is relative to the buck executable on $PATH, not to the current working directory, so the Python invocation fails. Using realpath instead directly resolves the full absolute path referred to by the symlink, allowing users to use relative symlinks in their bin/ directory on $PATH. Closes #930 Reviewed By: Coneko fbshipit-source-id: f537e70
- Loading branch information