mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-07 21:59:15 +00:00
feat(build): print if no services to build, build dependencies --dep, check build configuration --check
This commit is contained in:
1 parent
5c4f49b685
commit
65c3e0a68d
5 files changed
+98
-33
No files matched your search
@@ -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.")
|
||||
|
||||
Reference in new issue
Block a user