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

Boot script name is different after tarring #709

Closed
tsloughter opened this issue Apr 10, 2019 · 6 comments
Closed

Boot script name is different after tarring #709

tsloughter opened this issue Apr 10, 2019 · 6 comments

Comments

@tsloughter
Copy link
Member

Currently systools make_tar renames the boot script to start.boot from relname.boot. It can be confusing that unless you build a tarball and unpack it you won't be able to do certain thing like install/upgrade with release_handler since it requires the name be start.

I created an issue in the OTP bug tracker: https://bugs.erlang.org/browse/ERL-859 It has been a couple months with no response so I'll have to try poking people to get an answer.

One option is to do nothing. Or do what Jose did in mix release and always rename to start.boot. This would mean no longer using systools:make_tar when running tar but that isn't much of a loss since we already have to unpack the tar and repackage it to include overlay shit.

I guess another would be to find out if OTP team would accept a patch to systools to not only support the boot file always being named start but also to have a way to specify the overlay files to include when running make_tar so we don't have to repackage it.

@ferd
Copy link
Collaborator

ferd commented Apr 12, 2019

would it make sense to just run an additional copy + rename on the boot file to make a non-tarred directory upgradable? It's a little pain point we've found the hard way with teams at work where all of a sudden your whole test cycle for hot code loading requires bundling tarballs and unbundling them, rather than just playing around with the existing commands people were used to.

@tsloughter
Copy link
Member Author

Yea, it might be, that is what Jose did for mix release. I was hoping to hear back from someone on the OTP team first.

@tsloughter
Copy link
Member Author

Pinging @garazdawi :). Do you have any background on this or know who I should ping in the Jira issue or here?

@garazdawi
Copy link

It is Siri that would know. She's been super overloaded lately though, which is probably why she's not looked at the jira ticket yet.

@tsloughter
Copy link
Member Author

@garazdawi ah ok, thanks. I won't try pinging her then.

@tsloughter
Copy link
Member Author

Now in master, for relx 4.0.0, the release will always copy the boot script to start.boot

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

No branches or pull requests

3 participants