
install_symlink_p does not work as intended when dst includes a symlink in its path. relative_path_from requires that both src and dst be real paths without symlinks. From https://ruby-doc.org/stdlib-2.3.7/libdoc/pathname/rdoc/Pathname.html#method-i-relative_path_from This method doesn't access the filesystem. It assumes no symlinks.
Library
This directory contains all the code run by the official brew
and brew cask
commands in Homebrew
and all formulae (package descriptions) in taps (repositories containing formulae) in Taps
subdirectories.