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

Update relx up to v3.23.0 #677

Closed
wants to merge 1 commit into from

Conversation

stchar
Copy link

@stchar stchar commented Mar 17, 2017

Some relx release contain relx escript some of them do not.
I think common approach would be to whether to clone the repository or whether to get packed sources and build relx with rebar3.

@stchar stchar mentioned this pull request Mar 17, 2017
@essen
Copy link
Member

essen commented Mar 17, 2017

Erlang.mk can build relx, don't need rebar3.

That said, I was thinking of having a solution that doesn't make us too dependent on upstreams. There's a few options, the most sensible probably to add relx to BUILD_DEPS (BUILD_DEPS += relx) when the relx.config file exists.

Another option is to build and bundle it ourselves, but I'm not looking forward to doing that. The automatic approach is probably better (and could allow users to define a specific version or repository of Relx they want, even if it's not a tag).

@essen
Copy link
Member

essen commented Apr 25, 2017

I tried with v3.22.3 (which has a relx file) but make check c=relx-relup V=3 fails here. Can you try?

@essen
Copy link
Member

essen commented Apr 25, 2017

Problem disappeared, I think my environment was just fucked up. I'll update it now.

@essen
Copy link
Member

essen commented Apr 25, 2017

Nevermind I was running the wrong test.

@essen
Copy link
Member

essen commented Apr 25, 2017

3.22.0 also has the issue. Seems there's a dependency on compiler (really?) but even if I add it the test fails. Someone please investigate, otherwise I'm fine with leaving the current version for the time being.

@stchar
Copy link
Author

stchar commented Apr 27, 2017

Hey, sorry for a delay. I asked guy who releases relx to add binaries.
So I think there is no need in this PR.

@essen
Copy link
Member

essen commented Apr 27, 2017

Yeah but that doesn't solve the fact that most recent Relx broke release upgrades, at least for us.

@stchar
Copy link
Author

stchar commented Apr 27, 2017

Do you mean relup & reldown, don't you? Could you please describe a little bit precisely.

@essen
Copy link
Member

essen commented Apr 27, 2017

Try "make check c=relx-relup V=3" after changing the relx version to v3.22.3 and you'll see what I mean.

@stchar
Copy link
Author

stchar commented May 3, 2017

I did, It failed. Seems that relup tests are actually outdated. Need more time to investigate. It's strange that CI shows it's "ok"

@essen
Copy link
Member

essen commented May 3, 2017

It says OK because this is just the noop that succeeded, I haven't enabled the tests on this PR.

@stchar
Copy link
Author

stchar commented May 3, 2017

I think I found out the root cause. I'm updating testcases. Will share it soon.

BTW, I checked your approach with DEPS += relx it works.

@stchar stchar force-pushed the bugfix/update-relx branch from 224ff62 to 595eaa2 Compare May 3, 2017 15:59
@stchar stchar changed the title Update relx up to v3.22.2 Update relx up to v3.22.3 May 3, 2017
@stchar stchar force-pushed the bugfix/update-relx branch 3 times, most recently from 1d28b2e to 929de48 Compare May 3, 2017 16:09
@stchar
Copy link
Author

stchar commented May 12, 2017

I talked with the guy who releases relx. He confirmed that relx binary could be added to the release page of relx project. So what's the best approach?

@essen
Copy link
Member

essen commented May 12, 2017

Just fetching the binary for now should do.

@essen
Copy link
Member

essen commented May 12, 2017

I see you added compiler to the relx.config template. That's mad. Why would release upgrades require the compiler? Release upgrades (without relx) only require sasl. Relx should be fixed to not require it instead.

@essen
Copy link
Member

essen commented May 12, 2017

Sent a patch to relx. Will wait for it to be merged before merging this PR. erlware/relx#589

@stchar
Copy link
Author

stchar commented May 12, 2017

Ops. That's my bad. I compared it with a relx.config in my project. It had compiler.
So I thought like "Ok, new rules..." and added it to the bootstrap.

@essen
Copy link
Member

essen commented May 12, 2017

You are not the one mad here. The madness was probably accidental on their part too. The PR has been merged there so it's just a matter of waiting for the next version now.

@essen essen removed the Help wanted label May 12, 2017
@essen
Copy link
Member

essen commented May 24, 2017

Relx 3.23 has just been released, can you update your PR with it? Shouldn't need compiler anymore.

@stchar
Copy link
Author

stchar commented May 24, 2017

Sure, no problem

@stchar stchar force-pushed the bugfix/update-relx branch from 929de48 to ad0eec9 Compare May 25, 2017 08:16
@stchar stchar changed the title Update relx up to v3.22.3 Update relx up to v3.23.0 May 25, 2017
@stchar
Copy link
Author

stchar commented May 25, 2017

It's done + rebased.

@essen
Copy link
Member

essen commented May 25, 2017

Merged locally, will push soon. Thanks!

@essen essen closed this May 25, 2017
@stchar
Copy link
Author

stchar commented May 25, 2017

cool, thanks

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.

2 participants