buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

buildctl ignores/fails silently when ref is not specified in the export/import registry cache syntax

Open amrmahdi opened this issue 2 years ago • 0 comments

When using registry cache, if a user incorrectly specifies something like --export-cache=type=registry,name=foo:bar buildctl will silently ignore the registry cache without displaying any warning/error message (the right syntax is ref=foo:bar).

Looking at the code it seems as an artifact from supporting the legacy cache import/export syntax which as documented in code should have been removed a long time ago.

amrmahdi avatar Jul 21 '22 01:07 amrmahdi