Open thmo opened 2 months ago
Yeah, this one's a surprise. Note to self: need to check if the docker build
behavior depends on whether or not the glob includes wildcards or metacharacters, or if it's just always like that now.
A friendly reminder that this issue had no activity for 30 days.
@nalind What should we do with this one? Is there a difference between docker with and without buildkit?
@rhatdan yes, depending on whether I set DOCKER_BUILDKIT to 0 or 1, this may or may not produce an error:
mkdir /tmp/glob; (echo FROM scratch; echo 'COPY b* .') > /tmp/glob/Dockerfile
docker build /tmp/glob
Since we only want to match BUILDKIT, behavior, I take it Buildkit ignores no match?
I tend to prefer offering an API toggle for the sake of tools that use us as a library. In this case, in my experience, if the source does not include any characters which would be treated as special (e.g., replace b*
with b
in the above example), an error is still produced.
Hi
I'm having the same problem while trying to copy files that my not exists
Trying to build with this
Dockerfile
:Describe the results you received:
Describe the results you expected:
Match current Docker behavior: COPY should not fail if there is not at least one file to copy.
Output of
rpm -q buildah
orapt list buildah
:buildah-1.37.1-1.fc40.x86_64
Output of
buildah version
: