feat(build): print if no services to build, build dependencies --dep, check build configuration --check

This commit is contained in:
Pasha Sviderski committed 2025-10-30 20:54:15 +10:00
1 parent 5c4f49b685
commit 65c3e0a68d
5 files changed
+98 -33

No files matched your search

+4 -1
View File
@@ -66,7 +66,10 @@ func runBuild(ctx context.Context, uncli *cli.CLI, opts cli.BuildOptions) error
}
}
servicesToBuild := cli.GetServicesThatNeedBuild(project)
servicesToBuild, err := cli.ServicesThatNeedBuild(project, opts.Services, false)
if err != nil {
return fmt.Errorf("determine services to build: %w", err)
}
if len(servicesToBuild) == 0 {
fmt.Println("No services to build.")