Browse code

builder: ignore `label` and `label!` prune filters

Signed-off-by: Tibor Vass <tibor@docker.com>

Tibor Vass authored on 2018/11/21 08:31:50
Showing 1 changed files
... ...
@@ -146,6 +146,8 @@ func (b *Builder) Prune(ctx context.Context, opts types.BuildCachePruneOptions)
146 146
 	validFilters := make(map[string]bool, 1+len(cacheFields))
147 147
 	validFilters["unused-for"] = true
148 148
 	validFilters["until"] = true
149
+	validFilters["label"] = true  // TODO(tiborvass): handle label
150
+	validFilters["label!"] = true // TODO(tiborvass): handle label!
149 151
 	for k, v := range cacheFields {
150 152
 		validFilters[k] = v
151 153
 	}