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

Could not parse RUN with heredocs #15

Open
Jisu-Woniu opened this issue Aug 27, 2024 · 1 comment
Open

Could not parse RUN with heredocs #15

Jisu-Woniu opened this issue Aug 27, 2024 · 1 comment

Comments

@Jisu-Woniu
Copy link

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.
@Jisu-Woniu
Copy link
Author

This is the dprint.json if it is relavant:

dprint.json

{
  "dockerfile": {
  },
  "excludes": [],
  "plugins": [
    "https://plugins.dprint.dev/dockerfile-0.3.2.wasm"
  ]
}

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

1 participant