-
Notifications
You must be signed in to change notification settings - Fork 17
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
Obuilder_spec.run isn't translating to Dockerfile correctly #66
Comments
I think the problem here is that the Dockerfile format just doesn't support this (see https://stackoverflow.com/questions/33439230/how-to-write-commands-with-multiple-lines-in-dockerfile-while-preserving-the-new). Perhaps we should just reject attempts to convert to Dockerfile format in this case? |
Ouch, yes - if there isn't a workaround for here then we should just reject, I agree. I'll open an issue on opam-repo-ci to workaround it. |
Oh, there is a possible workaround, remembering horrid things we used to do in OCaml's testsuite - escaping newlines as |
Note that OBuilder allows you to use any shell, so shell-specific hacks won't work here. |
Merely picking a recent build from opam-repo-ci.
This fragment from opam-repo-ci:
is rendered:
but it needs semi-colons at the end of most lines. Not sure if escaping is the answer or possibly invoking via a HERE document?!
The text was updated successfully, but these errors were encountered: