Skip to content

Commit 67a60c3

Browse files
committed
fix: resolves #2204
1 parent 1553947 commit 67a60c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/resolve/resolve.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,7 @@ func parseVersion(rawVersions string) []string {
131131
}
132132

133133
func variableVersionName(toolName string) string {
134-
return fmt.Sprintf("ASDF_%s_VERSION", strings.ToUpper(toolName))
134+
upper := strings.ToUpper(toolName)
135+
sanitized := strings.ReplaceAll(upper, "-", "_")
136+
return fmt.Sprintf("ASDF_%s_VERSION", sanitized)
135137
}

0 commit comments

Comments
 (0)