{"record":{"id":"1ef11aa4713cb466","repo":"lima-vm/lima","slug":"field-shell-must-be-set","errorCode":null,"errorMessage":"field Shell must be set","messagePattern":"field Shell must be set","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/cidata/template.go","lineNumber":183,"sourceCode":"}\n\nfunc ValidateTemplateArgs(args *TemplateArgs) error {\n\tif err := identifiers.Validate(args.Name); err != nil {\n\t\treturn err\n\t}\n\t// args.User is intentionally not validated here; the user can override with any name they want\n\t// limayaml.FillDefault will validate the default (local) username, but not an explicit setting\n\tif args.User == \"root\" {\n\t\treturn errors.New(\"field User must not be `root`\")\n\t}\n\tif args.UID == 0 {\n\t\treturn errors.New(\"field UID must not be 0\")\n\t}\n\tif args.Home == \"\" {\n\t\treturn errors.New(\"field Home must be set\")\n\t}\n\tif args.Shell == \"\" {\n\t\treturn errors.New(\"field Shell must be set\")\n\t}\n\tif len(args.SSHPubKeys) == 0 {\n\t\treturn errors.New(\"field SSHPubKeys must be set\")\n\t}\n\tfor i, m := range args.Mounts {\n\t\tf := m.MountPoint\n\t\tif !path.IsAbs(f) {\n\t\t\treturn fmt.Errorf(\"field mounts[%d] must be absolute, got %#q\", i, f)\n\t\t}\n\t}\n\treturn nil\n}\n\nfunc ExecuteTemplateCloudConfig(args *TemplateArgs) ([]byte, error) {\n\tif err := ValidateTemplateArgs(args); err != nil {\n\t\treturn nil, err\n\t}\n","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/lima-vm/lima/blob/dd909d0973cd84fa35f9e1693181b4585ea616c1/pkg/cidata/template.go#L165-L201","documentation":"Error \"field Shell must be set\" thrown in lima-vm/lima.","triggerScenarios":"Thrown at pkg/cidata/template.go:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd909d0973cd84fa35f9e1693181b4585ea616c1","analyzedAt":"2026-09-01T14:24:59.842Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}