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

Release v1.4.6 and bugfix of symlink to priv/ creation #122

Merged
merged 8 commits into from
Feb 15, 2024

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Feb 9, 2024

This PR:

  • Makes the symlink to the directory with precompiled dependencies in priv/ creation not fail if the directory already exists.
  • Sets the appropriate RPATH to precompiled dependencies directory in .so files for priv/ in _build being both a directory and for a symlink
  • Bumps the version to v1.4.6

…iv/ creation not fail if the directory already exists
@FelonEkonom FelonEkonom marked this pull request as draft February 9, 2024 14:40
@varsill varsill requested a review from mat-hek February 12, 2024 14:20
@varsill varsill marked this pull request as ready for review February 12, 2024 14:20
create_relative_symlink(lib_path, logical_output_path, logical_dep_dir_name)

{physical_output_path, 0} = System.shell("realpath #{logical_output_path}")
physical_output_path = String.slice(physical_output_path, 0..-2//1)
Copy link
Member

Choose a reason for hiding this comment

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

use String.trim or trim_trailing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

logical_output_path = Bundlex.Toolchain.output_path(native.app, native.interface)
create_relative_symlink(lib_path, logical_output_path, logical_dep_dir_name)

{physical_output_path, 0} = System.shell("realpath #{logical_output_path}")
Copy link
Member

Choose a reason for hiding this comment

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

let's add a comment on why we do this and create two symlinks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@varsill varsill merged commit 4b13647 into master Feb 15, 2024
3 checks passed
@varsill varsill deleted the bugfix_symlink_creation branch February 15, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants