-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace realpath with Path.expand #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it seems that the lack of realpath
is the only thing that currently prevents Bundlex from working on a clean Mac OS, I'd instead use :file.read_link
. Since it works only for symlinks, it would probably require having Bundlex.Toolchain.real_output_path
that would check if priv
is a symlink and resolve it's real path in that case.
@mickel8 it should work without |
test/bundlex/integration_test.exs
Outdated
|
||
target_path | ||
end | ||
Enum.map([false, true], fn priv -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enum.map([false, true], fn priv -> | |
Enum.map([false, true], fn priv? -> |
It works, the only things is taht |
realpath
might not be installed on some OSes. I wonder if we could just usePath.expand
instead, like in the PR?