Skip to content

Could not parse RUN with heredocs #15

@Jisu-Woniu

Description

@Jisu-Woniu

Describe the bug

format error

dprint-plugin-dockerfile version: 0.3.2

Input Code

RUN <<EOF
echo Hello
echo World
EOF

Expected Output

dprint should parse this file successfully, since it is a legal Dockerfile according to Dockerfile reference.

Actual Output

Error formatting **/Dockerfile. Message: could not parse Dockerfile:  --> 4:4
  |
4 | EOF␊
  |    ^---
  |
  = expected any_breakable
Had 1 error formatting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions