From dee2403106a738b99f1e8a6e96e35c75b562e177 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Tue, 30 Aug 2022 14:41:14 +0200 Subject: [PATCH] Query just related files on build (#1045) --- magefile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index ead48b5ee42..036b4ffa2f6 100644 --- a/magefile.go +++ b/magefile.go @@ -776,7 +776,7 @@ func packageAgent(requiredPackages []string, packagingFn func()) { } } - files, err := filepath.Glob(filepath.Join(versionedFlatPath, "*")) + files, err := filepath.Glob(filepath.Join(versionedFlatPath, fmt.Sprintf("*%s*", version))) if err != nil { panic(err) }