-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add possibility to preserve and modify paths when using deterministic builds #8607
base: maint
Are you sure you want to change the base?
Conversation
CT Test Results 2 files 324 suites 10m 41s ⏱️ Results for commit a64326b. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
Related to #8602. |
Oops. Some tests are failing — I will take a look a little bit later. Anyway is it a good or bad idea of proposed changes? |
436cd03
to
4044e9b
Compare
I think overall a better option would be for the compiler to be able to emit relative paths in source (and |
Hello and many thanks for the feedback. Could you be so kind to provide a little bit more details? If I understand you correctly, your solution seems to be more simple than mine. For example if meta data of some file (let it be
How should it look when the file is compiled with |
I think there's a bit of scope to design some options. But one simple could be to have the path relative to either the "repository root" for all files, in this case The more advanced proposal that I mentioned would allow specifying custom "replacement roots" making the paths largely logical, rather than physical. Some example of this could be compiling the following file:
with a command (some rough proposal, subject to proper design)
we'd end up with the
today with the
where both By keeping the option fairly generic just replacing specified paths, I think this could serve several use cases |
compiler: add +preserve_paths option when using deterministic builds compiler: add +{modify_path, From, To} option compiler: make some minor additions for +deterministic option description
4044e9b
to
a64326b
Compare
configure: add --enable/disable-deterministic-keep-source build option
compiler: add +deterministic_keep_source option
compiler: make some minor additions for +deterministic option description