-
-
Notifications
You must be signed in to change notification settings - Fork 187
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 bad vm.args in Nerves firmware #884
Conversation
94fc6f9
to
ecdfd95
Compare
I just realized that we need the opposite check as well since someone might be using Elixir 1.14. I.e., if they specify the Elixir 1.15 way, give them an error. |
Good point. Is this also specific to OTP 26? |
I don't believe so. I was using the old way with Elixir 1.14 and OTP 26. Unfortunately I feel like things in this area have been changing lately and checking again with Elixir 1.14.5 would be wise. |
ecdfd95
to
9873c5a
Compare
With Elixir 1.15, the way the Elixir IEx shell is started on device has changed and using the old way will break things. This adds a new check during the release (firmware) initialization and stops the firmware build if the old method is still there
This file is required by Nerves, but has gone previously unchecked. Without it, things would be very sad. This adds a check in to prevent firmware being built if there is no vm.args.eex file. In the future, we may want to validate several pieces of it
9873c5a
to
5d16111
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@mnishiguchi What do you think?
With Elixir 1.15, the way the Elixir IEx shell is started on device has changed and using the old way will break things.
This adds a new check during the release (firmware) initialization and stops the firmware build if the old method is still there