We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
dprint-plugin-dockerfile version: 0.3.2
Using a digest in the image in FROM breaks formatting.
Based on release notes looks like dockerfile-parser-rs 0.9.0 could fix it: https://github.com/HewlettPackard/dockerfile-parser-rs/releases/tag/v0.9.0
Input Code
FROM golang:1.24.1@sha256:fa145a3c13f145356057e00ed6f66fbd9bf017798c9d7b2b8e956651fe4f52da
Expected Output
Actual Output
Error formatting /path/to/Dockerfile. Message: could not parse Dockerfile: --> 1:19 | 1 | FROM golang:1.24.1@sha256:fa145a3c13f145356057e00ed6f66fbd9bf017798c9d7b2b8e956651fe4f52da␊␊ | ^--- | = expected EOI Had 1 error formatting.
The text was updated successfully, but these errors were encountered:
chore(deps): upgrade dockerfile-parser to 0.9.0
3fa5d9e
For digest in FROM image support. Closes dprint#19
Confirmed 0.9.0 to fix it, PR in #20
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
dprint-plugin-dockerfile version: 0.3.2
Using a digest in the image in FROM breaks formatting.
Based on release notes looks like dockerfile-parser-rs 0.9.0 could fix it: https://github.com/HewlettPackard/dockerfile-parser-rs/releases/tag/v0.9.0
Input Code
FROM golang:1.24.1@sha256:fa145a3c13f145356057e00ed6f66fbd9bf017798c9d7b2b8e956651fe4f52da
Expected Output
FROM golang:1.24.1@sha256:fa145a3c13f145356057e00ed6f66fbd9bf017798c9d7b2b8e956651fe4f52da
Actual Output
The text was updated successfully, but these errors were encountered: