8000 Don't rewrite app files if contents are the same by lrascao · Pull Request #565 · erlware/relx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't rewrite app files if contents are the same #565

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

Merged

Conversation

lrascao
Copy link
Collaborator
@lrascao lrascao commented Jan 29, 2017

When comparing .app files to check if a rewrite is
necessary do so by comparing erlang terms instead
of bytes, the original .app might contain comments
for example and cause unnecessary rewrites.
This proves a problem when dealing with erts .app
files that might be read-only at the origin and
thus cause a failed release on relx that is
uncalled for since there might have been no changes
at all.

This fixes #564 and erlang/rebar3#1441

When comparing .app files to check if a rewrite is
necessary do so by comparing erlang terms instead
of bytes, the original .app might contain comments
for example and cause unnecessary rewrites.
This proves a problem when dealing with erts .app
files that might be read-only at the origin and
thus cause a failed release on relx that is 
uncalled for since there might have been no changes
at all.
@lrascao
Copy link
Collaborator Author
lrascao commented Feb 1, 2017

@tsloughter ready for review

@tsloughter tsloughter merged commit a4d7fa1 into erlware:master Feb 2, 2017
@lrascao lrascao deleted the feature/fix_read_only_include_erts branch February 3, 2017 22:29
deadjdona referenced this pull request in esl/MongooseIM Oct 17, 2017
Sidestep permissions issue from #1170 while waiting for upstream fix
for erlware/relx#564 .
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.

relx:main with {include_erts,true} fails on Darwin
2 participants
0