You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Obuilder_spec.run isn't translating to Dockerfile correctly #66
changed the title [-]Obuilder_spec.Docker.pp_run needs to escape backslashes[/-][+]Obuilder_spec.run isn't translating to Dockerfile correctly[/+]on Mar 22, 2021
Activity
[-]Obuilder_spec.Docker.pp_run needs to escape backslashes[/-][+]Obuilder_spec.run isn't translating to Dockerfile correctly[/+]talex5 commentedon Mar 22, 2021
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?
dra27 commentedon Mar 22, 2021
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.
dra27 commentedon Mar 22, 2021
Oh, there is a possible workaround, remembering horrid things we used to do in OCaml's testsuite - escaping newlines as
:; \certainly works here.talex5 commentedon Mar 22, 2021
Note that OBuilder allows you to use any shell, so shell-specific hacks won't work here.