From ee79f9e69a4f6dbaefa93db78505eaf7b5a88652 Mon Sep 17 00:00:00 2001 From: j4qfrost Date: Wed, 11 Jan 2023 00:22:45 -0800 Subject: [PATCH] fix: investigate build issues (#167) * cache everything except the target --- packages/cli/lib/src/cli/commands/build.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/lib/src/cli/commands/build.dart b/packages/cli/lib/src/cli/commands/build.dart index efd133740..88da4fe17 100644 --- a/packages/cli/lib/src/cli/commands/build.dart +++ b/packages/cli/lib/src/cli/commands/build.dart @@ -5,6 +5,7 @@ import 'dart:io'; import 'dart:mirrors'; import 'package:args/args.dart' as arg_package; +import 'package:collection/collection.dart'; import 'package:conduit/src/cli/command.dart'; import 'package:conduit/src/cli/metadata.dart'; import 'package:conduit/src/cli/mixins/project.dart'; @@ -47,8 +48,8 @@ class CLIBuild extends CLICommand with CLIProject { final cfg = await ctx.packageConfig; final packageNames = cfg.packages - .where((pkg) => pkg.name.startsWith('conduit_')) - .map((pkg) => pkg.name); + .map((pkg) => pkg.name) + .whereNot((pkg) => pkg == libraryName); const String cmd = "dart"; final args = ["pub", "cache", "add", "-v", projectVersion!.toString()];