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) }