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

Returns UnexpectedEOF if the dockerfile uses JSON array syntax for the COPY command #7

Open
kachick opened this issue Jun 26, 2023 · 0 comments

Comments

@kachick
Copy link

kachick commented Jun 26, 2023

Describe the bug

dprint-plugin-dockerfile version: 0.3.0
dprint version: 0.37.1

Input Code

FROM ubuntu:jammy-20230605

COPY  ["a.txt", "./"]

Expected Output

FROM ubuntu:jammy-20230605

COPY ["a.txt", "./"]

Actual Output

> dprint check
Error formatting /home/kachick/repos/dprint-plugin-dockerfile-copy-syntax-array/Dockerfile. Message: error unescaping string: UnexpectedEOF
Had 1 error(s) formatting.
kachick added a commit to kachick/anylang-template that referenced this issue May 16, 2024
* Do not add docker plugin: dprint/dprint-plugin-dockerfile#7
* Do not enable nix updater in renovate, use selfup to sync with other CIs
kachick added a commit to kachick/anylang-template that referenced this issue May 16, 2024
* Replace prettier with yamlfmt for yaml formatter

* Add some renovate bot plugins and the updaters

* Do not add docker plugin: dprint/dprint-plugin-dockerfile#7
* Do not enable nix updater in renovate, use selfup to sync with other CIs
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