patrickhoefler/dockerfilegraph

Cache mount links dependent upon suboption ordering

iamthad opened this issue · 1 comments

FROM scratch AS foo

FROM scratch AS bar
RUN --mount=type=cache,from=foo,target=/mnt

renders as
Dockerfile test1

But

FROM scratch AS foo

FROM scratch AS bar
RUN --mount=type=cache,target=/mnt,from=foo

does not recognize the link between the stages and renders as

zopfli_Dockerfile

As always, thank you for the bug report 🙇🏼‍♂️

The fix is currently going through the CI pipeline, the bugfix version should roll out in a few minutes.