From fba9cee59c5d10d90a5e4f1ca5be9e3baa9954b0 Mon Sep 17 00:00:00 2001 From: Joe Kralicky Date: Thu, 27 Jul 2023 20:30:05 -0400 Subject: [PATCH] Fix typo in mergeStrict logic --- dagger/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagger/config/config.go b/dagger/config/config.go index 630449329d..c763eda497 100644 --- a/dagger/config/config.go +++ b/dagger/config/config.go @@ -205,7 +205,7 @@ func mergeStrict(src, dest map[string]any) error { // a type mismatch when merging with a slice of a specific type. if reflect.TypeOf(dest[key]).Kind() == reflect.Slice && reflect.TypeOf(val) == reflect.TypeOf(([]any)(nil)) && - reflect.ValueOf(val).Len() == 0 { + reflect.ValueOf(dest[key]).Len() == 0 { dest[key] = reflect.MakeSlice(reflect.TypeOf(dest[key]), 0, 0).Interface() continue }