Skip to content

Commit

Permalink
fix: hermit init (#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Dec 20, 2024
1 parent 9927522 commit b12a059
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/cli/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b12a059

Please sign in to comment.