-
Notifications
You must be signed in to change notification settings - Fork 49
Behaviour of command without shell entrypoint is unexpected #52
Comments
I'm not sure this is a multiline issue. I was trying YAML multiline options from: https://yaml-multiline.info/ When I tried using a single-line, single-quoted string, I still had the same complaint:
|
Ah, I get it now. Trying The complaint about "task" comes from Gradle, not Batect. This works, if annoying in it's verbosity:
A little more nicely:
(Note: Do not indent further at "&&"; this changes the parsing somehow.) |
@charleskorn I'm ok with closing this. Contra, it could be a documentation request. Since Docker Compose itself doesn't explain this well, I'm uncertain if Batect should, though it is a gotcha for the unaware. |
Thanks for the feedback @binkley. What you're seeing is the behaviour of If you wanted to remove the need to use ENTRYPOINT ["/bin/sh", "-c"] (There's more explanation of this in the docs I linked to above.) I think it's worthwhile adding some docs around this, as it's a common point of confusion - so thanks for the suggestion. As a further aside, batect does not use Docker Compose internally - while similar, they are independent. |
I've updated the docs with a note about this - thanks again for the feedback @binkley! |
I've tried several YAML variations on quoting multi-line strings. Latest is:
In each case, batect complains:
I'm sure this is PEBKAC. What am I doing wrong?
The text was updated successfully, but these errors were encountered: