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

Prevent build machine paths being used in published artifacts #190

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

davydog187
Copy link
Collaborator

Currently, wherever luerl is built before publishing will include the user's local filesystem paths. You can see @rvirding path's in hexpm https://preview.hex.pm/preview/luerl/1.2.2/show/src/luerl_scan.erl

%% User code. This is placed here to allow extra attributes.
-file("/Users/rv/luerl/luerl/src/luerl_scan.xrl", 139).

This fixes the compiler to always use just the basename to prevent this leakage.

%% User code. This is placed here to allow extra attributes.
-file("luerl_scan.xrl", 139).

Conf0 ++ [{erl_opts,Copts}]
end,

%% Prevent build directories being used in output files

XrlYrlOpts = if Version > "24" ->
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whoops

@rvirding
Copy link
Owner

rvirding commented Sep 29, 2024

@davydog187 I think something is going wrong here because something is not working with the changes you have made to rebar.config.script so the it handles the try - catch and stacktraces in the wrong way. Why were some older tests cancelled.

@rvirding
Copy link
Owner

rvirding commented Oct 2, 2024

I cannot see these options in the compiler documentation or in the source code of the compiler, or anything else for that matter. Where did you see it?

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.

2 participants