Merge pull request #6519 from ginglis13/ctr-runtime-path

ctr: improve error relative shim path error msg
This commit is contained in:
Kazuyoshi Kato
2022-03-14 09:49:27 -07:00
committed by GitHub
4 changed files with 107 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ func Command(ctx context.Context, config *CommandConfig) (*exec.Cmd, error) {
func BinaryName(runtime string) string {
// runtime name should format like $prefix.name.version
parts := strings.Split(runtime, ".")
if len(parts) < 2 {
if len(parts) < 2 || parts[0] == "" {
return ""
}