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

Add test case for relx overlay vars #1041

Merged
merged 1 commit into from Feb 6, 2016

Conversation

lrascao
Copy link
Contributor

@lrascao lrascao commented Jan 27, 2016

This is a test case for validation against #1036, so it's failing right now.
It also exposes erlware/relx#335, to reproduce it run the test then enter the directory where the test fixtures were generated to and generate the release again, if run multiple times it will fail with the

badmatch,{error,enoent}},
                             [{rlx_prv_assembler,rewrite_app_file,2,

error every other time.
This is relx erroring out because it's trying to rewrite OTP's kernel .app file which is not present, it seems to be copied in one run and deleted in the next, this accounts for it failing every other time
Makes use of several var types: integers,
strings, binaries, binary strings and tuples.

@ferd ferd added bug dependency issue resides in a rebar3 dependency labels Jan 27, 2016
@tsloughter
Copy link
Collaborator

@lrascao overlay vars have to be iolists.

Maybe the solution to the issue is for relx to throw an error if a overlay var isn't an iolist?

Makes use of several var types: integers,
strings, binaries, binary strings and tuples.
@lrascao
Copy link
Contributor Author

lrascao commented Feb 5, 2016

Test case updated, vars are now iolists

@tsloughter
Copy link
Collaborator

Awesome, thanks.

tsloughter added a commit that referenced this pull request Feb 6, 2016
Add test case for relx overlay vars
@tsloughter tsloughter merged commit a7bdffa into erlang:master Feb 6, 2016
@lrascao lrascao deleted the fix/relx_overlay_vars branch February 10, 2016 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependency issue resides in a rebar3 dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants