Skip to content

Commit

Permalink
fix: trim v from semver
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten authored and pascalbreuninger committed May 23, 2024
1 parent d6edb67 commit f272463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compose/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (h *ComposeHelper) Remove(ctx context.Context, projectName string, args []s
}

func (h *ComposeHelper) GetDefaultImage(projectName, serviceName string) (string, error) {
version, err := semver.Parse(h.Version)
version, err := semver.Parse(strings.TrimPrefix(h.Version, "v"))
if err != nil {
return "", err
}
Expand Down

0 comments on commit f272463

Please sign in to comment.