From f4820681ce4673f8fdb415e8b268698f43d09353 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 12 Mar 2019 11:18:54 -0700 Subject: [PATCH] client: fix panic on exporting cache Signed-off-by: Tonis Tiigi --- client/solve.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/solve.go b/client/solve.go index 9d2238af..cba5a1a0 100644 --- a/client/solve.go +++ b/client/solve.go @@ -350,13 +350,13 @@ func parseCacheOptions(opt SolveOpt) (*cacheOptions, error) { cacheExports []*controlapi.CacheOptionsEntry cacheImports []*controlapi.CacheOptionsEntry // legacy API is used for registry caches, because the daemon might not support the new API - legacyExportRef string - legacyExportAttrs map[string]string - legacyImportRefs []string + legacyExportRef string + legacyImportRefs []string ) contentStores := make(map[string]content.Store) indicesToUpdate := make(map[string]string) // key: index.JSON file name, value: tag frontendAttrs := make(map[string]string) + legacyExportAttrs := make(map[string]string) for _, ex := range opt.CacheExports { if ex.Type == "local" { csDir := ex.Attrs["dest"]