validateIncludedPackages static method

void validateIncludedPackages(
  1. Iterable<Pubspec> includedPackagePubspecs
)

Validates that the included packages are compatible with Serverpod Cloud. Throws WorkspaceException if any issues are found.

Implementation

static void validateIncludedPackages(
  final Iterable<Pubspec> includedPackagePubspecs,
) {
  final List<String> issues = [];
  for (final pubspec in includedPackagePubspecs) {
    final includedPackageValidator = TenantProjectPubspec(pubspec);
    issues.addAll(
      includedPackageValidator.projectDependencyIssues(
        requireServerpod: false,
      ),
    );
  }
  if (issues.isNotEmpty) {
    WorkspaceProject._throwWorkspaceException(messages: issues);
  }
}