Open
Description
Describe the bug
When the expression FROM <image>@digest
is included, a parse error occurs.
It also gives an error when I use FROM <image>:tag@digest
.
dprint-plugin-dockerfile version: 0.3.0
Input Code
FROM ghcr.io/jqlang/jq@sha256:12f998e5a6f3f6916f744ba6f01549f156f624b42f7564e67ec6dd4733973146 as fetch-jq
Expected Output
FROM ghcr.io/jqlang/jq@sha256:12f998e5a6f3f6916f744ba6f01549f156f624b42f7564e67ec6dd4733973146 AS fetch-jq
Actual Output
$ dprint check Dockerfile
Error formatting /home/mogyuchi/prj/fixup-twitter-link/Dockerfile. Message: could not parse Dockerfile: --> 1:23
|
1 | FROM ghcr.io/jqlang/jq@sha256:12f998e5a6f3f6916f744ba6f01549f156f624b42f7564e67ec6dd4733973146 as fetch-jq␊
| ^---
|
= expected EOI
Had 1 error(s) formatting.