From ae810d5697c16eb1cd81b8a287d01b21a203cde4 Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Sun, 22 Dec 2024 13:40:24 +0100 Subject: [PATCH] make Upgrade more talkative --- internal/workdir/workdir.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/workdir/workdir.go b/internal/workdir/workdir.go index cce5701..cd66d33 100644 --- a/internal/workdir/workdir.go +++ b/internal/workdir/workdir.go @@ -388,6 +388,8 @@ func (c *Workdir) Sync(ctx context.Context, maxWorkers int, tags []string) error // Upgrade will upgrade only spec tools. and re-fetch latest versions of includes. func (c *Workdir) Upgrade(ctx context.Context, tags []string) error { for _, tool := range c.spec.Tools.Filter(tags) { + fmt.Println("Checking:", tool.Module, "...") + // FIXME(zhuravlev): remove all "is runtime supported" checks by checking it once at spec load. rt, ok := c.runtimes[tool.Runtime] if !ok { @@ -400,10 +402,11 @@ func (c *Workdir) Upgrade(ctx context.Context, tags []string) error { } if !haveUpdate { + fmt.Println(">>> Have no updates") continue } - fmt.Println("Upgrade:", tool.Module, "=>", module) + fmt.Println(">>> Upgrade to:", module) tool.Module = module