Merge pull request #801 from victornoel/776-dockerignore-relative

Support Dockerfile.dockerignore
This commit is contained in:
Tejal Desai
2019-10-04 01:56:40 -07:00
committed by GitHub
9 changed files with 69 additions and 4 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ var isSrcValidTests = []struct {
func Test_IsSrcsValid(t *testing.T) {
for _, test := range isSrcValidTests {
t.Run(test.name, func(t *testing.T) {
if err := GetExcludedFiles(buildContextPath); err != nil {
if err := GetExcludedFiles("", buildContextPath); err != nil {
t.Fatalf("error getting excluded files: %v", err)
}
err := IsSrcsValid(test.srcsAndDest, test.resolvedSources, buildContextPath)