From b12a05968d000f186e9345c9d39071909c4869c3 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Fri, 20 Dec 2024 13:37:27 +1100 Subject: [PATCH] fix: hermit init (#3833) --- frontend/cli/cmd_init.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/cli/cmd_init.go b/frontend/cli/cmd_init.go index cc2b93c3b..44fbcd5c5 100644 --- a/frontend/cli/cmd_init.go +++ b/frontend/cli/cmd_init.go @@ -127,9 +127,11 @@ func installHermitFTL(ctx context.Context, dir string) error { normalRelease := regexp.MustCompile(`^\d+\.\d+\.\d+$`) normal := normalRelease.MatchString(ftlVersion) if !normal { - ftlVersion = "latest" + ftlVersion = "@latest" + } else { + ftlVersion = "-" + ftlVersion } - args := []string{"install", "ftl@" + ftlVersion} + args := []string{"install", "ftl" + ftlVersion} if err := exec.Command(ctx, log.Debug, dir, "./bin/hermit", args...).RunBuffered(ctx); err != nil { return fmt.Errorf("unable to install hermit package ftl %w", err) }