Error copying a file containing an inferred ARG variable #2593
Labels
area/dockerfile-command
For all bugs related to dockerfile file commands
area/env-variable
cmd/copy
differs-from-docker
kind/bug
Something isn't working
kind/question
Further information is requested
needs-discussion
Items which need more discussion before commitment
needs-follow-up
priority/p1
Basic need feature compatibility with docker build. we should be working on this next.
priority/p2
High impact feature/bug. Will get a lot of users happy
works-with-docker
Actual behavior
When trying to copy a file that contains a name build using an
ARG
variable, it fails with a "no such file or directory".Expected behavior
To be totally honest
docker
also fails to build this image, but at least the message is more clear as we can observe that the filename cannot be constructed correctly. Meanwhile inkaniko
it shows the correct path and filename, we spend hours debugging the previous stages and layers, clearly seeing the file that is referenced in the error.The final clue has been
Built cross stage deps: map[0:[/binaries/app_]]
where we observed that weren't able to build the proper filename.To Reproduce
I attached a simple
Dockerfile
and thekaniko
anddocker
commands I used to test it.Additional Information
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: