kaniko/pkg/dockerfile
Priya Wadhwa 5e5623e5a4 Fix bug in SaveStage function for multistage builds
This change should fix the bug in #294, where kaniko wasn't recognizing
that a stage would be used in a later build and so wasn't saving it as a
tarball.

Each stage of the Dockerfile has a Name and a BaseName (FROM BaseName as
Name), but if a Name isn't specified then it's set to the same value as
BaseName. Our test cases weren't complete enough to catch this
distinction, which is why this bug occurred.

I added more test cases to the unit tests to make sure this fix works.
2018-08-20 15:10:17 -07:00
..
buildargs.go Pass in clone of buildargs for dockerfile parsing 2018-05-14 16:19:26 -07:00
dockerfile.go Fix bug in SaveStage function for multistage builds 2018-08-20 15:10:17 -07:00
dockerfile_test.go Fix bug in SaveStage function for multistage builds 2018-08-20 15:10:17 -07:00