Custom test path dependency broken with multi-config #5665
Labels
area/testing
Issues concerning the testing phase of Skaffold
feature/multi-configs
kind/bug
Something isn't working
priority/p2
May take a couple of releases
In GoogleContainerTools/container-debug-support#65 I'm trying to reorganize the
skaffold debug
helper images to use a Skaffold multi-config setup. I have a custom test definition that specifies dependencies using a pattern:But my build is failing (logs):
The
paths
field is marked as askaffold:filepath
but the underlying implementation useslist.Files()
which causes problems aspaths
has been made absolute in the multi-config situation:skaffold/pkg/skaffold/test/custom/custom.go
Line 149 in 60458eb
but
list.Files()
assumes that it must prefix the file patterns with the working directory:skaffold/pkg/skaffold/build/list/list.go
Line 34 in 60458eb
I'm wondering if we should apply to the
skaffold:filepath
adjustments to all configs rather than just child configs so that we discover these situations earlier.Steps to reproduce the behavior
skaffold build
The text was updated successfully, but these errors were encountered: