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

Re-vendor hex_core in at 0.7.0 #2421

Merged
merged 5 commits into from
Nov 17, 2020
Merged

Conversation

starbelly
Copy link
Contributor

Updates hex_core to 0.7.0 which includes OTP 24 compatibility changes.

@paulo-ferraz-oliveira
Copy link
Contributor

Do you think it possible to wait on hexpm/hex_core#105 (comment) for a few days, at most? We'd not have to do this twice, but it's OK of the PR is closed in the meantime.

@tsloughter
Copy link
Collaborator

I think so. It won't be until this weekend that I can get a new relx cut and waiting on that for a new rebar3 release.

@paulo-ferraz-oliveira
Copy link
Contributor

paulo-ferraz-oliveira commented Nov 4, 2020

@starbelly, if #2412 gets accepted, you should then re-run the vendoring script (and find no differences in the generated output - unless you've also waited until hexpm/hex_core#105 gets accepted, in which case there'll be small differences in generated code... and also a warningless dialyzer analysis[1]).


[1] just waiting on the results, here.

@starbelly
Copy link
Contributor Author

Yup 👍

@paulo-ferraz-oliveira
Copy link
Contributor

If @tsloughter beats me to it, by all means to that rebar3 release... I'm waiting on stuff from master, in any case. 😄

Bryan Paxton added 3 commits November 5, 2020 16:50
 - update bootstrap script to account for hex_core in src/vendored
bootstrap Outdated
file:make_dir(NewAcc),
NewAcc
end,
lists:foldl(Pred, "", filename:split(Target)).
Copy link
Collaborator

Choose a reason for hiding this comment

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

filelib:ensure_dir(Target) will do that.

@paulo-ferraz-oliveira
Copy link
Contributor

paulo-ferraz-oliveira commented Nov 9, 2020

Does this still leave erlang:get_stacktrace references in code?

Edit: I don't know if we'll be able to compile under OTP 24, in that case. Compiling works, which is the most important part. It'll probably fail on using some Hex-related elements, though.

@starbelly
Copy link
Contributor Author

starbelly commented Nov 10, 2020

@paulo-ferraz-oliveira Yes, at 0.7.0 erlang:get_stacktrace is still in play. A PR needs to be sent to hex_core to handle this with a platform define or similar to the way rebar3 is doing this with a macro at the moment :

-ifdef(fun_stacktrace).

Edit: Opened this PR hexpm/hex_core#106

@paulo-ferraz-oliveira
Copy link
Contributor

Cool. That PR (and subsequent import to rebar3) will work if the goal is to test rebar3 if compiled with OTP 21, for example. I guess the jump to support 24 will be accompanied with the jump to let go of 19 and 20, though.

@paulo-ferraz-oliveira
Copy link
Contributor

@starbelly 0.7.1 has been cut. You may want to use that one :)

@ferd ferd merged commit f9885c9 into erlang:master Nov 17, 2020
@starbelly starbelly deleted the update-hex-core-to-v0-7-0 branch November 19, 2020 01:37
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.

4 participants