Skip to content
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

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Replace realpath with Path.expand #125

merged 3 commits into from
Apr 17, 2024

Conversation

mickel8
Copy link
Member

@mickel8 mickel8 commented Mar 1, 2024

realpath might not be installed on some OSes. I wonder if we could just use Path.expand instead, like in the PR?

@mickel8 mickel8 requested a review from varsill March 1, 2024 16:48
@FelonEkonom FelonEkonom requested review from mat-hek and varsill and removed request for varsill March 14, 2024 16:55
Copy link
Member

@mat-hek mat-hek left a 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.

@darthez darthez assigned mat-hek and unassigned FelonEkonom Mar 28, 2024
@mat-hek
Copy link
Member

mat-hek commented Apr 4, 2024

@mickel8 it should work without realpath now, can you check?


target_path
end
Enum.map([false, true], fn priv ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Enum.map([false, true], fn priv ->
Enum.map([false, true], fn priv? ->

@mickel8
Copy link
Member Author

mickel8 commented Apr 15, 2024

It works, the only things is taht /bin/sh: realpath: command not found is printed

@mat-hek mat-hek merged commit cea734f into master Apr 17, 2024
3 checks passed
@mat-hek mat-hek deleted the realpath branch April 17, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants